Computer interview questions – page 5

4,197 questions. Tap “Show answer” to check yourself.

Advertisement
  1. _____ are grouped by object oriented database.

    1. Characteristics, attributes & graphics
    2. Characteristics, attributes & quantity
    3. Characteristics, attributes & procedures
    4. Characteristics, color & size
    Show answer

    C. Characteristics, attributes & procedures

  2. Which of the following window is similar to Defaultfilter?

    1. Condition window
    2. Query condition window
    3. Report window
    4. Form window
    Show answer

    B. Query condition window

  3. _____ of variables declared within a function is extended to the function block and all sub blocks therein.

    1. Class scope
    2. File scope
    3. Local scope
    4. Function scope
    Show answer

    D. Function scope

  4. _____ functions copies source to target string.

    1. Stcp ()
    2. Scpy ()
    3. Str ()
    4. Strcpy ()
    Show answer

    D. Strcpy ()

  5. _____ function returns the number of character stored in the array.

    1. Strlength ()
    2. Stlen ()
    3. Str ()
    4. Strlen ()
    Show answer

    D. Strlen ()

  6. Which of the following is NOT true, related to functions?

    1. The default value for an argument can be given in between the argument list.
    2. The default value in the formal parameters can be given in the form of variable initialization.
    3. The actual parameters can be passed only as variables to formal parameters of reference type.
    4. The actual parameters can be passed in the form of constants to the formal parameters of value type.
    Show answer

    A. The default value for an argument can be given in between the argument list.

  7. _____ are user defined named entities of memory locations that can store data.

    1. Char
    2. Data
    3. Constant
    4. Variables
    Show answer

    D. Variables

  8. Switch expression should be evaluated to an _____ constant only.

    1. float
    2. variable
    3. string
    4. integer
    Show answer

    D. integer

  9. To make a function inline, one has to insert the keyword _____ in the function header.

    1. line
    2. mainline
    3. online
    4. inline
    Show answer

    D. inline

  10. A destructor name must be

    1. same as class name prefixed by tilde (~) character
    2. same as class name
    3. same as any other member function name
    4. none of the given
    Show answer

    A. same as class name prefixed by tilde (~) character

  11. Which of the following prototype can be a copy constructor of class myclass?

    1. myclass (myclass & ×)
    2. myclass copy (myclass a)
    3. int copy (myclass mc)
    4. myclass (int myclass)
    Show answer

    A. myclass (myclass & ×)

  12. A copy constructor is invoked when

    1. an object is passed by reference to constructor
    2. a member function returns an object
    3. an object is passed as a parameter to any of the member function
    4. all of the above
    Show answer

    D. all of the above

  13. Advertisement
  14. _____ of a class are data variables that represent the features or properties of a class.

    1. Access specifiers
    2. Visibility labels
    3. Member functions
    4. Data members
    Show answer

    D. Data members

  15. Declaration and function definitions are two specifications of which of the following

    1. Comments
    2. Class
    3. Data type
    4. None of the given
    Show answer

    B. Class

  16. The members that can also be accessed from outside the class should be declared as

    1. Protected
    2. Private
    3. Public
    4. None of these
    Show answer

    C. Public

  17. Members of a class are classified as

    1. Data functions and member functions
    2. Data hiding and data abstraction
    3. Data variables and data hiding
    4. Data members and member function
    Show answer

    D. Data members and member function

  18. void sum:: input ()<br>The above line tells

    1. function input is sub function of sum
    2. function sum is sub function of input
    3. function input is declared within the class sum
    4. function sum is declared within the class input
    Show answer

    C. function input is declared within the class sum

  19. Bjarne Stroustrup initially named C++ as

    1. C with classes
    2. Advanced C
    3. Deep C
    4. D
    Show answer

    A. C with classes

  20. Which of the following statements in NOT true?

    1. A non member function cannot access the private data of a class
    2. The return type of a member function cannot be object data type
    3. Several different classes can use the same function name
    4. Member functions can be of static type
    Show answer

    D. Member functions can be of static type

  21. int ex:: output ()<br> Which of the following is true with reference to the above line?

    1. The function output returns integer data type
    2. The function output returns ex type of data
    3. The class output returns integer type of data
    4. The function ex returns integer type of data
    Show answer

    A. The function output returns integer data type

  22. The body of the class starts and ends with

    1. Braces i.e.., {}
    2. Semi colon(;)
    3. Start and stop
    4. Begin and end
    Show answer

    A. Braces i.e.., {}

  23. Data abstraction in C++ is achieved by

    1. Encapsulation()
    2. Data Hiding()
    3. Polymorphism()
    4. Inheritance()
    Show answer

    B. Data Hiding()

  24. _____ is not a field type in StarBase.

    1. Menu
    2. Float
    3. Currency
    4. Date/Time
    Show answer

    B. Float

  25. To edit a record first

    1. Select the record
    2. Press the record pointer
    3. Press the primary key
    4. Key the record
    Show answer

    A. Select the record

  26. Advertisement
  27. By pressing which key, one can move to the second field?

    1. Shift key
    2. Tab key
    3. Replace key
    4. Insert key
    Show answer

    B. Tab key

  28. The key combination used to save the table is

    1. Ctrl + B
    2. Ctrl + K
    3. Ctrl + Z
    4. Ctrl + S
    Show answer

    D. Ctrl + S

  29. Sorting on more than one field of a table at the same time is called

    1. Multiple Sorting
    2. Merging
    3. Sorting in Ascending order
    4. Sorting in Descending order
    Show answer

    A. Multiple Sorting

  30. Browsing a selecting list of records is called

    1. Filtering
    2. Merging
    3. Searching
    4. Sorting
    Show answer

    A. Filtering

  31. To uniquely identify a record in database, the key used is

    1. Key
    2. Primary key
    3. Secondary key
    4. Third level key
    Show answer

    B. Primary key

  32. Data hiding refers to _____

    1. not giving names to data
    2. not specifying members and functions of a class
    3. declaring members as public
    4. members and functions of a class are not accessible by members of outside class
    Show answer

    D. members and functions of a class are not accessible by members of outside class

Advertisement