No student devices needed. Know more
11 questions
The data type of the variable in the switch and value of a case must not be of the same type.
True
False
The _____ in switch statement is used to terminate the current sequence.
default
goto
break
jump
The default statement is optional and it can be used anywhere inside the switch statement.
True
False
Multiple "default" statements are allowed in switch case statement
True
False
A nested switch statement is allowed.
True
False
Switch statement can not be combine with if..else in one coding
True
False
We can have any number of case statements within a switch
True
False
When the variable being switched on is equal to a case, the statements following that case will execute until a _____ statement is reached.
goto
stop
break
default
Identify the output for this coding
case 1
case 5
case 9
No match found
Identify the output from this coding
Programming
This subject... Programming
This subject...absolutely i love it
This subject...ape ni?
Identify the output from the coding
Buat ape tu?
Takde kelas pun ada homework ke?
Macam budak sekolah daa..
Saya suka homework
Macam budak sekolah daa..
Macam budak sekolah daa..
Buat ape tu?
Takde kelas pun ada homework ke?
Explore all questions with a free account