Chapter 5


  1. There are two operands in a relational expression.

  2. The purpose of a flowchart is to visually depict the flow of a program.

  3. The data type of the expression following the if keyword is Boolean.

  4. In an if /else if / else statement, you must have one, but only one, if part.

  5. In an if /else if / else statement, you may have more than one else if part.

  6. In an if /else if / else statement, you may omit the else part, in which case the statement becomes an if/else if statement.

  7. In a switch statement, the required data type of expression following the switch keyword is integer.

  8. In a switch statement, an expression of the character data type may follow the switch keyword because the ANSI or ASCII value of a character is an integer.

  9. In a switch statement, the expression following a case keyword must be a constant and therefore cannot be a variable.

  10. The default keyword in a switch statement corresponds to the else keyword in an if /else if / else statement.




C++ Demystified(c) A Self-Teaching Guide
C++ Demystified(c) A Self-Teaching Guide
ISBN: 72253703
EAN: N/A
Year: 2006
Pages: 148

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net