C++ Programming Fundamentals (Cyberrookies)

  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?

Категории