Tutorials - Solution to C++ Programming Quiz on Switch..Case
Lesson 5: switch case
If you didn't do as well as you like, be sure to read through Cprogramming.com's tutorial on Switch..Case
. Otherwise, congratulations!
QuizNext lesson: Lesson 6, pointers
1. Which follows the case statement?
D. A newline
2. What is required to avoid falling through from one case to the next?
D. A semicolon.
3. What keyword covers unhandled possibilities?
4. What is the result of the following code?
case 1: cout<<"One";
case 0: cout<<"Zero";
case 2: cout<<"Hello World";
C. Hello World
D. ZeroHello World