This operator increments the value of its operand then uses


1. The do-while loop is a __________ loop that is ideal in situations where you always want

the loop to iterate at least once.

A) None of these

B) null-terminated

C) post-test

D) infinite

E) pre-test

2. What will the following code display?

int number = 6

int x = 0;

x = --number;

cout << x << endl;

A) 6

B) 7

C) 0

D) 5

3. This operator increments the value of its operand, then uses the value in context.

A) prefix decrement

B) prefix increment

C) postfix decrement

D) None of these

E) postfix increment

4. How many times will the following loop display "Hello"?

for (int i = 0; i <= 20; i++)

  cout << "Hello!" << endl;

A) 21

B) 19

C) 20

D) An infinite number of times

5. Something within a while loop must eventually cause the condition to become false, or a(n) __________ results.

A) compiler error

B) null value

C) None of these

D) unexpected exit

E) infinite loop

6. In a for statement, this expression is executed only once.

A) null

B) test

C) validation

D) initialization

E) None of these

7. These are operators that add and subtract one from their operands.

A) binary and unary

B) conditional and relational

C) plus and minus

D) None of these

E) ++ and --

8. This is a special value that marks the end of a list of values.

A) sentinel

B) constant

C) None of these

D) variable

E) loop

9. The do-while loop is considered a(n) _________ loop.

A) post-test

B) pre-test

C) None of these

D) infinite

E) limited

10. This is a control structure that causes a statement or group of statements to repeat.

A) constant

B) cout object

C) decision statement

D) None of these

E) loop

Request for Solution File

Ask an Expert for Answer!!
Other Subject: This operator increments the value of its operand then uses
Reference No:- TGS0602713

Expected delivery within 24 Hours