Which of the following is NOT a relational operator?
CodeHS Quiz: Boolean Expressions and if Statements

Quiz
•
Journalism
•
KG
•
Easy
Gracie Rosky
Used 7+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
<
?
==
>=
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does this Java expression evaluate to?
80 >= 80
"true"
true
false
This expression will error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the code snippet below.
String name = "Karel"; String checkName = new String("Karel"); boolean nameMatches = name == checkName;
true
false
Cannot be determined
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the difference between == and =?
== is used for assignment, while = is used to check for equality
= is used for assignment, while == is used to check for equality.
== assigns values to objects while = assigns values to primitives.
There is no difference. These symbols can be used interchangeably.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following symbols is the “not equal” symbol?
==
not =
!=
<>
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Why do we use if statements in Java?
To break out of some block of code
To do something only if a condition is true
To do something while a condition is true
To repeat something for a fixed number of times
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which if statement is written properly?
if (boolean expression): // code to execute // code to execute
if boolean expression { // code to execute // code to execute }
if(boolean expression) { // code to execute // code to execute }
if boolean expression [ // code to execute // code to execute ]
Create a free account and access millions of resources
Similar Resources on Quizizz
11 questions
CNN10 News Quiz - Current Events 12/8/23

Quiz
•
7th Grade
12 questions
Journalism

Quiz
•
1st - 6th Grade
20 questions
Copyright

Quiz
•
7th - 8th Grade
20 questions
AP Style Review #1

Quiz
•
University
15 questions
ALL Procedures Quiz

Quiz
•
10th - 12th Grade
15 questions
Media Literacy Module One Review

Quiz
•
8th Grade
15 questions
India

Quiz
•
9th Grade
20 questions
Pollyanna Quiz Chapters 6 and 7

Quiz
•
5th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade