What is the value of var1 after the code segment is executed?
Java Conditionals Unit 3

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Rebekah Lang
Used 19+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
1
2
9
10
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is printed as a result of the call conditionalTest(-1, -1)?
A
B
C
D
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
if !(val < 80 || !(val <= 90))
Which of the following code fragments would have the same effect?
if (!(val>80)||val<=90)
if (val > 80 || !(val >= 90))
if (val >= 80 && val <= 90)
if (val > 80 && !(val <=90))
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
The following truth table matches which Boolean condition?
(A && B) || B
A || (B && A)
(A || B ) && B
(A || B) || (!A || !B)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A student programmed a video game to display different end messages depending on the final score. If the score is greater than or equal to 20, the game will print, “AMAZING!”. If the score is between 15-19 inclusive, the game will print out, “Well done.” If the score is between 10-14 inclusive, the game will print, “Do better.” And if the score is less than 10, the game will print, “Ouch.”
Will this code work as expected?
Yes
No
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the value of myNumber after the above code executes?
6
7
8
9
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will be printed when this code segment is executed?
yes no yes
yes yes yes
yes no no
no yes yes
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
!(x || y) && (x || y)
The result of evaluating the expression above is best described as:
always true
always false
true only when x is true and y is true
true only when x and y have the same value
Similar Resources on Quizizz
10 questions
Comp Sci unit 3 #6

Quiz
•
11th Grade
10 questions
AP CSA Unit 1 & 2 Review

Quiz
•
9th - 12th Grade
12 questions
Python Programming Basics

Quiz
•
7th - 11th Grade
10 questions
MIT App Inventor Basics

Quiz
•
9th - 12th Grade
10 questions
Programming Fundamentals

Quiz
•
9th - 10th Grade
10 questions
Variables

Quiz
•
9th Grade
10 questions
Python Basics

Quiz
•
8th - 10th Grade
12 questions
Unit 6 practice Lists, no loops

Quiz
•
12th 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
Discover more resources for Computers
25 questions
Spanish preterite verbs (irregular/changed)

Quiz
•
9th - 10th Grade
10 questions
Identify Slope and y-intercept (from equation)

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

Interactive video
•
7th - 12th Grade
8 questions
"Keeping the City of Venice Afloat" - STAAR Bootcamp, Day 1

Quiz
•
9th - 12th Grade
26 questions
June 19th

Quiz
•
4th - 9th Grade
20 questions
Distance, Midpoint, and Slope

Quiz
•
10th Grade
20 questions
Figurative Language Review

Quiz
•
10th Grade
27 questions
STAAR English 1 Review

Quiz
•
9th Grade