Switch Statement in C++

Assessment
•
Iman Ezzat
•
Computers
•
10th - 12th Grade
•
37 plays
•
Medium
Student preview

11 questions
Show answers
1.
Multiple Choice
The data type of the variable in the switch and value of a case must not be of the same type.
True
False
2.
Multiple Choice
The _____ in switch statement is used to terminate the current sequence.
default
goto
break
jump
3.
Multiple Choice
The default statement is optional and it can be used anywhere inside the switch statement.
True
False
4.
Multiple Choice
Multiple "default" statements are allowed in switch case statement
True
False
5.
Multiple Choice
A nested switch statement is allowed.
True
False
Explore all questions with a free account
Find a similar activity
Create activity tailored to your needs using
ONE 6th FORM Switch Case

•
11th Grade
Java switch case

•
6th - 12th Grade
Quiz - 10 on switch in C

•
12th Grade
Java Quiz: Switch Case and Switch Statement

•
12th Grade
C++ Switch Statement

•
10th - 12th Grade
switch cases

•
11th Grade
JAVA switch statement

•
9th - 12th Grade
switch

•
10th Grade