Review Questions

  1. What are the parts to a for loop declaration?

  2. What types of variables can be used for a switch statement?

  3. What is the purpose of the default statement in a switch statement?

  4. Why is it important to use the double equals sign in an if statement?

  5. Why might a switch statement be better than an if statement in some cases?

  6. What happens if you omit the break statements from your switch block?

  7. What is the purpose of a for loop?

  8. Can you have an if statement without enclosing brackets?

  9. How do you implement more than one choice in an if statement?

  10. What other possibilities besides equivalence can you use for if statements?

C++ Programming Fundamentals
C++ Programming Fundamentals (Cyberrookies)
ISBN: 1584502371
EAN: 2147483647
Year: 2005
Pages: 197
Authors: Chuck Easttom © 2008-2017.
If you may any questions please contact us: