CSC 200 Quiz 2/21

¡Supera tus tareas y exámenes ahora con Quizwiz!

How many times will the following loop display "Hello"? for (int i = 0; i < 20; i++) cout << "Hello!" << endl; A. 20 B. 21 C. 19 D. an infinite number of times

20

This statement causes a loop to terminate early. A. terminate B. null C. stop D. break E. None of these

break

This is a variable that is regularly incremented or decremented each time a loop iterates. A. counter B. constant C. control statement D. null terminator E. None of these

counter

This is a control structure that causes a statement or group of statements to repeat. A. constant B. decision statement C. cout object D. loop E. None of these

loop

This is a pre-test loop that is ideal in situations where you do not want the loop to iterate if the condition is false from the beginning. A. while B. infinite C. for D. do-while E. None of these

while


Conjuntos de estudio relacionados

BAS 270 Business Employability Seminar Chapter 4 Networking It's Always Who You Know

View Set

[202x2] Chapter 4: ABO and H Blood Group Systems and Secretor Status

View Set

Policy Provisions, Options, and Riders

View Set

Texas Real Estate Finance - Chapter 8

View Set

Chapter 23 Biology: Evolution of Populations

View Set

Chapter 47: Acute Kidney Injury and Chronic Kidney Disease

View Set

dental instruments: A pocket guide. Chapters 7-9

View Set

MGT 340 Exam 3 Vocab Summer Session

View Set