Computer Science - Object Oriented Programming Using C++

1. 

Which of the following are valid characters for a numeric literal constant?

A. a decimal point
B. the letter e
C. a minus sign
D. a plus sign
E. All of the above

Answer: Option E

Explanation:

No answer description available for this question. Let us discuss.

2. 

Any #include files may contain

A. constants
B. variables
C. functions
D. All of the above

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.

3. 

When a break statement is used in a loop, the control skips the rest of the statements in the loop after it and jumps

A. to the last lines in the program
B. to the next statement written after the body of the loop
C. to the first statement in the body of the loop
D. All. of the above
E. None of the above

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.

4. 

The function that takes arguments to set the bits of count is _____

A. setf()
B. bitsef()
C. ios()
D. flag()

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

5. 

When two types are used in a function template and one is labeled T, the other

A. must also be named T
B. must be named U
C. can be any legal C++ identfier
D. it is illegal to have two types

Answer: Option A

Explanation:

No answer description available for this question. Let us discuss.

1 2 3 4 5 6 7 8 9 10 Next »