CSC 215 Quiz 4

CSC 215 Quiz 4 - T 1. Using nested if statements without...

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

View Full Document Right Arrow Icon
1. Using nested if statements without including braces to indicate the desired structure constitutes a common programming error. 2. The condition used in an if statement can be any valid C++ expression. 3. The keyword case identifies the start of the switch statement. 4. Any number of case labels may be contained within a switch statement, in any order. T 5. In a switch statement, if the value of the expression does not match any of the case values, however, no statement is executed unless the keyword default is encountered. F 6. In C++, relational operators cannot be used with character operands. T 7. One or more if-else statements can be included within either part of an if-else statement. T 8. In C++, tests for equality of single-precision and double-precision values and variables using the relational operator == should be avoided. T 9. Any variable declared within a block of statements only has meaning between its declaration and the closing braces defining the block. F
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This test prep was uploaded on 04/07/2008 for the course ENG CSC 215 taught by Professor Goldberg during the Spring '08 term at TCNJ.

Page1 / 2

CSC 215 Quiz 4 - T 1. Using nested if statements without...

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

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