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
What is the value of var1 after the code segment is executed?
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 Wayground
12 questions
Functions With Return Values U1M2 Python

Quiz
•
9th - 12th Grade
10 questions
COMP SCI Unit 2 #7

Quiz
•
11th Grade
10 questions
Unit 1 Review AP CSP

Quiz
•
9th - 12th Grade
10 questions
WK 9 variable

Quiz
•
12th Grade
11 questions
christmas

Quiz
•
KG - University
10 questions
WJEC GCSE ICT Unit 1 - Data

Quiz
•
10th Grade
13 questions
Delphi Term 2 Revision

Quiz
•
9th - 11th Grade
10 questions
Code.org Discoveries

Quiz
•
9th - 11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade