Chapter 4 Test 2

Chapter 4 Test 2 - Chapter 4 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. __________ 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
Background image of page 1

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

View Full DocumentRight Arrow Icon
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.
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.

Page1 / 7

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