Quiz


  1. What does the increment operator do?

  2. What does the decrement operator do?

  3. Which occurs first, decrementing or the outputting of the value of num, in the statement cout << --num?

  4. What is an iteration?

  5. What is the usual purpose of the first expression in the parentheses following the for keyword?

  6. What is the purpose of the second expression in the parentheses following the for keyword?

  7. What is the usual purpose of the third expression in the parentheses following the for keyword?

  8. Can one or more of the expressions in the parentheses following the for keyword be empty?

  9. What is the purpose of the break keyword in a for loop?

  10. What is the purpose of the continue keyword in a for loop?

  11. If you were going to use nested for loops to print rows and columns, which for loop would print the columns inner or outer?




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