A SWITCH case statement in Java is a ___ control statement.
"switch" Java Statement - 1

Quiz
•
Computers
•
9th - 10th Grade
•
Medium
Swarn Mishra
Used 173+ times
FREE Resource
17 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Iteration
Looping
Selection
Jump
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which is the alternative to SWITCH in Java language?
break, continue
for, while
if-else
goto, exit
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What are the keywords used to implement a SWITCH case in Java language?
switch, case
default
break
All of above
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
A SWITCH statement accepts ___ type of data as input.
byte
short
int
All of above
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Choose the correct syntax of SWITCH statement in Java below.
switch(input)
{
case constant1: //statements; break;
case constant2: //statements; break;
default: //statements;
};
switch(input)
{
case constant1: //statements; break;
case constant2: //statements; break;
default: //statements;
}
switch(input)
{
case constant1: //statements; break;
case constant2: //statements; break;
default case: //statements;
};
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output of Java program with SWITCH below?
int a=10;
switch(a)
{
case 10: System.out.println("TEN");
}
No Output
TEN
Compiler error as there is no break
None
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is the output of the Java program below?
int b=20;
switch(b)
{
default: System.out.println("LION");
}
No Output
LION
Compiler error as there are no CASE statements.
None
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
JAVA FUNDAMENTALS

Quiz
•
9th - 12th Grade
16 questions
Loops Quiz

Quiz
•
9th - 12th Grade
15 questions
JAVA: Level-1

Quiz
•
5th - 12th Grade
20 questions
APCSA Arrays

Quiz
•
9th - 12th Grade
20 questions
terstruktur

Quiz
•
10th Grade
19 questions
Java Base

Quiz
•
9th - 12th Grade
20 questions
Sains Komputer F4

Quiz
•
10th - 11th Grade
16 questions
Loops

Quiz
•
5th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University