Chapter 5 Test 2

Chapter 5 Test 2 - Chapter 5 Test 2 Thursday, February 24,...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1. To ___________ a value means to increase it by one. A. decrement B. increment C. modulus D. parse E. None of these 2. When the increment operator precedes its operand, as in ++num1, the expression is in _______ mode. A. postfix B. prefix C. preliminary D. binary E. None of these 3. In the statement if (X++ > 10), the _____ operator is used first. A. ++ B. > C. Neither. The expression is invalid. Chapter 5 Test 2 Thursday, February 24, 2011 5:12 AM General Page 1
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4. A _______ is a control structure that causes a statement or group of statements to repeat. A. decision statement B. constant C. loop D. cout object E. None of these 5. The while loop contains an expression that is tested for a true or false value, and a statement or block that is repeated as long as the expression: A. is false B. is true C. does not evaluate to true or false D. evaluates to true or false E. None of these 6. True/False: The condition of a while loop must be enclosed in parentheses and terminated with a semicolon. A.
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 02/24/2011 for the course CS 245 taught by Professor Duke during the Fall '10 term at VCU.

Page1 / 7

Chapter 5 Test 2 - Chapter 5 Test 2 Thursday, February 24,...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online