Topic 4-2: Multiple if-else and switch-case
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Adila Nordin
Used 34+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What value is assigned to fee by the multiple if-else statement when speed is 75?
40.00
60.00
20.00
error
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What value is assigned to fee by the multiple if-else statement when speed is 75?
60.00
20.00
40.00
error
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output when the value of number is 20?
A
B
C
error
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output when the value of number is 10?
A
B
C
error
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the output when the value of number is 50?
A
B
C
error
6.
MULTIPLE SELECT QUESTION
1 min • 1 pt
boolean attendance = true;
Which of the following if statement includes a condition that evaluates to true? (can select more than 1)
if(attendance) {...}
if(attendance == "true") {...}
if(attendance == true) {...}
if(attendance != false) {...}
7.
MULTIPLE CHOICE QUESTION
1 min • 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;
};
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Ôn tập & Điểm danh PTDL Buổi 2
Quiz
•
University
10 questions
Diagramas UML: Casos de uso, actividades y objetos
Quiz
•
University
14 questions
Protocolo ARP e Ativos Básicos de Rede
Quiz
•
University
10 questions
Unit- II Survey Quiz on Research Design
Quiz
•
University
10 questions
HW6 Chapter 6 PLC
Quiz
•
University
10 questions
TOPIC 1 COMPUTER NETWORK
Quiz
•
University
10 questions
Transmission Media
Quiz
•
1st Grade - University
7 questions
Backup, Restore, and Recovery
Quiz
•
9th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
