Chapter 4 Test 2

# Chapter 4 Test 2 - Chapter 4 Test 2 Thursday 5:10 AM 1...

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

1. __________ operators allow you to compare numeric values and determine if one is greater than, less than, equal to, or not equal to another. A. Arithmetic B. Relational C. Unary D. Conditional E. None of these 2. Whereas < is called a relational operator, x < y is called a(n)________________ A. Arithmetic operator B. Relative operator C. Relational expression D. Largeness test E. None of these 3. The _____ operator is used in C++ to represent equality. A. = B. >< C. !! D. == Chapter 4 Test 2 Thursday, February 24, 2011 5:10 AM General Page 1

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

View Full Document
E. None of these 4. In C++ the = operator indicates A. Equality B. Assignment C. Subtraction D. Negation E. None of these 5. True/False: You should be careful when using the equality operator to compare floating point values because of potential round-off errors. A. True B. False 6. True/False: An expression that has any value other than 0 is considered true by an if statement. A.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### Page1 / 7

Chapter 4 Test 2 - Chapter 4 Test 2 Thursday 5:10 AM 1...

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

View Full Document
Ask a homework question - tutors are online