
Java Decision Making Quiz

Quiz
•
Other
•
Professional Development
•
Medium
mukilan selvaraj
Used 2+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to start a conditional statement in Java?
case
if
for
loop
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a relational operator?
+=
==
&&
||
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of the following code? int a = 5, b = 10; if (a > b) System.out.println("A is greater"); else System.out.println("B is greater");
A is greater
B is greater
No output
Compilation error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes a nested if statement?
If statement inside a loop
If statement inside another if statement
If-else inside a function
If statement with multiple conditions
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of 10 % 3 in Java?
1
3
10
0
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does && operator do?
OR operation
NOT operation
AND operation
XOR operation
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax for a switch case?
switch {}
case (expression):
switch(expression) { case value: ... }
switch case()
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
IOSA Conformance Auditors Training

Quiz
•
Professional Development
25 questions
Java Control flow stmt

Quiz
•
Professional Development
20 questions
Kelayakan Peralatan

Quiz
•
Professional Development
20 questions
26311-20 motor controls

Quiz
•
Professional Development
20 questions
SQL Quiz session -1

Quiz
•
Professional Development
20 questions
NetworkQuiz-1

Quiz
•
Professional Development
20 questions
Body System Diagnosis Phase 1 (LV2)

Quiz
•
Professional Development
24 questions
SOAL SAVING FINAL 1

Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade