MCQs
Total Questions : 30
| Page 2 of 3 pages
Answer: Option C. -> both a & b
The classes in c++ are used to manipulate both data and functions.
Answer: Option D. -> both a & b
Struct and union take the same definition of class but differs in the access techniques.
Answer: Option B. -> 2
There are two kinds of classes in c++. They are absolute class and concrete class.
Answer: Option B. -> : :
: :
Answer: Option C. -> 3
There are three types of access specifiers. They are public, protected and private.
Answer: Option B. -> private
private
Answer: Option A. -> initalize the objects
Once the object is declared means, the constructor are also declared by default.
Answer: Option A. -> class A { int x; };
class A { int x; };
Answer: Option A. -> abstract class
abstract class
Answer: Option A. -> access is public by default
access is public by default