Wednesday 8 May 2013

QUIZ ANSWERS 6-10

QUIZ ANSWERS 6-10
6.
Some Streams work with input, and some with output
True
False
Answer: Option A

7. 
If you design a class that needs special initialization tasks, you will want to design a(n) _____
housekeeping routine
Initializer
Constructor
Compiler
Answer: Option C

8. 
Which type of statement does not occur in computer programs?
Sequence
loop
Denial
selection
Answer: Option C

9. 
The newline character is always included between
pair of parentheses
pair of curly braces
control string
&
None of the above
Answer: Option C



10. 
To be called object-oriented, a programming language must allow
functions that return only a single value
#include files
Inheritance
All of the above
Answer: Option C

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