C++ Programming Questions Answers - Set 2

  • 43. The function used to define the task assigned to an operator is ?

    1. Virtual function
    2. Static function
    3. Operator function
    4. Friend function
    Answer And Explanation

    Answer: Option C

  • 44. Which operators can not be overloaded ?

    1. Binary operator
    2. Ternary operator
    3. Unary operator
    4. All can be overloaded
    Answer And Explanation

    Answer: Option B

  • 45. Classes in c++ are ?

    1. Fundamental data type
    2. Primitive data type
    3. Desired data type
    4. Not defined
    Answer And Explanation

    Answer: Option C

  • 46. 37. Which of the following statements is false ?

    1. Using typedef does not replace the standard C++ data type name with the new name
    2. The new name defined by typedef, can be used as a type for another typedef
    3. typedef defines new data types
    4. None of the above
    Answer And Explanation

    Answer: Option C

  • 47. 66. A constructor function is generally defined

    1. In the private section of a class
    2. In the public section of a class
    3. In the protected section of a class
    4. None of the above
    Answer And Explanation

    Answer: Option B

  • 48. The symbol ** __ .

    1. can be overloaded by changing its datatype.
    2. cannot be overloaded, as on overloading its meaning shall be changed.
    3. can be overloaded.
    4. cannot be overloaded as it is not a C++ operator.
    Answer And Explanation

    Answer: Option D

  • 49. Only one copy of the class is inherited, when it is defined as ?

    1. virtual
    2. public
    3. static
    4. private
    Answer And Explanation

    Answer: Option A