Lesson 3.5 - If Structures Practice
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
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
Already have an account?
Similar Resources on Wayground
15 questions
Code.org Lesson 1-14
Quiz
•
9th - 12th Grade
20 questions
Python básico
Quiz
•
9th - 12th Grade
11 questions
Access
Quiz
•
10th Grade - University
20 questions
Google SketchUp Tool
Quiz
•
KG - University
15 questions
Photoshop
Quiz
•
9th - 12th Grade
20 questions
iMovie App Quiz
Quiz
•
6th - 12th Grade
15 questions
Unbound Report Quiz
Quiz
•
9th - 12th Grade
20 questions
Trắc nghiệm Tin 10-Chủ đề A
Quiz
•
10th - 11th Grade
Popular Resources on Wayground
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
15 questions
Solving Equations with Variables on Both Sides Review
Quiz
•
8th Grade
