Chapter 4 Test 1

Chapter 4 Test 1 - Chapter 4 Test 1 Thursday, February 24,...

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

View Full Document Right Arrow Icon
1. Relational operators allow you to ____________ numbers. A. Add B. Multiply C. Compare D. Average E. None of these 2. True/False: All of the relational operators are binary. A. True B. False 3. True/False: Some relational operators, such as >=, actually test for two relationships. A. True B. False 4. The ____ statement can cause other program statements to execute only under certain conditions. A. cout B. cin C. if Chapter 4 Test 1 Thursday, February 24, 2011 5:10 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
run() E. None of these 5. If you place a semicolon after the statement if (x < y) A. The code will not link correctly B. The compiler will interpret the semicolon as a null statement C. The if statement will always evaluate to false D. All of the above E. None of these 6. When a relational expression is false, it has the value _____. A. one B. zero C. zero, one, or minus one D. less than zero E. None of these 7. A _____ is a variable, usually a boolean or an integer, that signals when a condition exists. 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 / 6

Chapter 4 Test 1 - Chapter 4 Test 1 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