Quiz


  1. Which of the three loops for, while, or do whileexecutes at least once?

  2. Which of the three loopsfor, while, or do whileis the best choice when the number of iterations is predictable?

  3. Is the parenthetical expression following the while keyword for initialization, condition or update?

  4. May the parenthetical expression following the while keyword be true, such as while (true)?

  5. Can the parenthetical expression following the while keyword combine two expressions?

  6. What is the purpose of the break keyword in a while loop?

  7. What is the purpose of the continue keyword in a while loop?

  8. What is a flag?

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

  10. Does a variable declared inside the body of a do while loop have scope in the parenthetical expression following the while keyword?




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