Wednesday 8 May 2013

QUIZ ANSWERS: 1 to 5


QUIZ ANSWERS: 1 to 5

1. To expose a data member to the program, you must declare the data member in the _____ section of the class
common
exposed
public
unrestricted
user
Answer: Option C

2. 
Evaluate the following expression: 3 >6&&7>4
True
False
Answer: Option B

3. 
A function that changes the state of the cout object is called a(n) _____
Member
adjuster
Manipulator
operator
Answer: Option C

4. 
A C++ program contains a function with the header int function(double d, char c)Which of the following function headers could be used within the same program?
char function(double d, char c)
int function(int d, char c)
both (a) and (b)
neither (a) nor (b)
Answer: Option B

5. 
When the compiler cannot differentiate between two overloaded constructors, they are called
Overloaded
destructed
Ambiguous
dubious
Answer: Option C


No comments:

Post a Comment