Lesson 3.5 - If Structures Practice
Quiz
•
Computers
•
11th Grade
•
Medium
SAMUEL KEENER
Used 6+ times
FREE Resource
Enhance your content in a minute
16 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of boolean statements in Java?
To perform arithmetic calculations
To compare values and determine their relationship
To print output on the console
To create loops and iterations
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operator is used to check if two values are equal in Java?
==
<=
>=
>
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following boolean expression in Java:
System.out.println(6 > 3) ?
true
false
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following boolean expression in Java: !(4 == 4)?
true
false
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you write a boolean expression to check if a variable "age" is greater than or equal to 18 in Java?
age >= 18
age <= 18
age == 18
age > 18
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct way to declare a boolean variable in Java?
boolean isTrue = 1;
boolean isTrue = 'true';
boolean isTrue = true;
boolean isTrue = '1';
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following boolean expression in Java:
System.out.println(5 != 5) ?
true
false
Create a free account and access millions of resources
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
19 questions
level of software testing
Quiz
•
11th Grade
20 questions
Latihan Soal Administrasi Infrastruktur Jaringan XII TKJ
Quiz
•
10th - 12th Grade
20 questions
COMPUTER ARCHITECTURE MODELS
Quiz
•
11th Grade
16 questions
Quiz Pemrograman Java dengan netbeans
Quiz
•
10th Grade - University
15 questions
Queues
Quiz
•
11th Grade - Professi...
15 questions
Chapter : 9 Working with tables
Quiz
•
5th Grade - University
20 questions
ASK T3 : 1.1 Pembangunan Aturcara
Quiz
•
1st - 12th Grade
12 questions
App Inventor 3. Тест после занятия
Quiz
•
1st - 12th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
4 questions
Activity set 10/24
Lesson
•
6th - 8th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
30 questions
October: Math Fluency: Multiply and Divide
Quiz
•
7th Grade
