C++ Programming Questions Answers - Set 2
-
43. The function used to define the task assigned to an operator is ?
- Virtual function
- Static function
- Operator function
- Friend function
Answer And Explanation
Answer: Option C
Explanation:
-
44. Which operators can not be overloaded ?
- Binary operator
- Ternary operator
- Unary operator
- All can be overloaded
Answer And Explanation
Answer: Option B
Explanation:
-
45. Classes in c++ are ?
- Fundamental data type
- Primitive data type
- Desired data type
- Not defined
Answer And Explanation
Answer: Option C
Explanation:
-
46. 37. Which of the following statements is false ?
- Using typedef does not replace the standard C++ data type name with the new name
- The new name defined by typedef, can be used as a type for another typedef
- typedef defines new data types
- None of the above
Answer And Explanation
Answer: Option C
Explanation:
-
47. 66. A constructor function is generally defined
- In the private section of a class
- In the public section of a class
- In the protected section of a class
- None of the above
Answer And Explanation
Answer: Option B
Explanation:
-
48. The symbol ** __ .
- can be overloaded by changing its datatype.
- cannot be overloaded, as on overloading its meaning shall be changed.
- can be overloaded.
- cannot be overloaded as it is not a C++ operator.
Answer And Explanation
Answer: Option D
Explanation:
-
49. Only one copy of the class is inherited, when it is defined as ?
- virtual
- public
- static
- private
Answer And Explanation
Answer: Option A
Explanation: