The address of a variable temp of type float is
(A) *temp (B) &temp
(C) float& temp (D) float temp&
Ans: B
The process of building new classes from existing one is called .
(A) Polymorphism (B)Structure
(C) Inheritance (D) Cascading
Ans: C
Usually a pure virtual function
(A) has complete function body.
(B) will never be called.
(C) will be called only to delete an object.
(D) is defined only in derived class.
Ans: D
Overloading the function operator
(A) requires a class with an overloaded operator.
(B) requires a class with an overloaded [ ] operator.
(C) allows you to create objects that act syntactically like functions.
(D) usually make use of a constructor that takes arguments.
Ans: A
In C++, the range of signed integer type variable is
(A) 0 to 216 (C) − 27 to 27 − 1 (B) − 215 to 215 − 1 (D) 0 to 28
Ans: B
Mechanism of deriving a class from another derived class is known as
(A) Polymorphism (B) Single Inheritance
(C) Multilevel Inheritance (D) Message Passing
Ans: C
RunTime Polymorphism is achieved by
(A) friend function (B) virtual function
(C) operator overloading (D) function overloading
Ans: B
0 comments:
Post a Comment