What's the value of the below?
boolean b = (5 > 2);
Java1 - Week2
Quiz
•
Other
•
University
•
Hard
Yahini Prabha Murugesan
Used 11+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What's the value of the below?
boolean b = (5 > 2);
True
False
5
2
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What's the value of the below?
score = 75;
if (score >= 90.0)
System.out.print("A");
else if (score >= 80.0)
System.out.print("B");
else if (score >= 70.0)
System.out.print("C");
else if (score >= 60.0)
System.out.print("D");
else
System.out.print("F");
A
B
C
D
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What's the value of below?
int Status =2;
switch (status) {
case 0: System.out.println(0);
break;
case 1: System.out.println(1);
break;
case 2: System.out.println(2);
case 3: System.out.println(3);
break;
default: System.out.println("Invalid");
System.exit(1);
}
2
3
2
3
2
3
Invalid
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What's the value of the below?
int x = 10;
y = (x > 15) ? 1 : -1;
System.out.println(y);
10
15
-1
1
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What's the output of the below?
int num = 11;
if (num % 2 == 0)
System.out.println("If is the right answer");
else
System.out.println("Else is the right answer”);
If is the right answer
Else is the right answer
Runtime Error
Compiler Error
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What's the value of the below?
score = 55;
if (score >= 50.0)
System.out.print("PASS");
else
System.out.print("FAIL");
PASS
FAIL
PASS FAIL
55
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What's the value of below?
int Status =20;
switch (status) {
case 0: System.out.println(0);
break;
case 1: System.out.println(1);
break;
case 2: System.out.println(2);
break;
case 3: System.out.println(3);
break;
default: System.out.println("Invalid");
System.exit(1);
}
2
3
2
3
2
3
Invalid
Invalid
20 questions
Java programming
Quiz
•
University
24 questions
Java Programming midterm exam
Quiz
•
University
20 questions
TECHTRIX2025 BUGHUNT SET4
Quiz
•
University
20 questions
First Meet Sains Data 2022
Quiz
•
University
20 questions
Android Club Event-1
Quiz
•
University
25 questions
round 2
Quiz
•
University
20 questions
Quanta
Quiz
•
University
25 questions
C Programming
Quiz
•
12th Grade - University
20 questions
math review
Quiz
•
4th Grade
20 questions
Math Review - Grade 6
Quiz
•
6th Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
20 questions
Taxes
Quiz
•
9th - 12th Grade
10 questions
Human Body Systems and Functions
Interactive video
•
6th - 8th Grade
19 questions
Math Review
Quiz
•
3rd Grade
45 questions
7th Grade Math EOG Review
Quiz
•
7th Grade
20 questions
Summer
Quiz
•
KG - University
6 questions
Railroad Operations and Classifications Quiz
Quiz
•
University
47 questions
2nd Semester 2025 Map Final
Quiz
•
KG - University
43 questions
Science 5th Grade EOG Review #3
Quiz
•
KG - University
24 questions
Cartoon Characters
Quiz
•
KG - University
9 questions
What is your personality?
Quiz
•
University
10 questions
El Presente
Quiz
•
1st Grade - University
32 questions
NC Biology EOC Review : Heredity, Genetics, Biotechnology
Quiz
•
KG - University