
Chapter 5-Boolean Expressions and If Statements-Ch 5 Rev. Drill
Quiz
•
Computers
•
9th - 12th Grade
•
Hard
THOMAS HARRIS
FREE Resource
Enhance your content in a minute
2 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following code segment:
for (int i = 200; i > 0; i /=3)
{
if (i % 2 == 0)
System.out.print (i + " ") ;
}
What is the output as a result of executing the code segment?
(A) 200 66 22 7 2
(B) 66 22 7 2
(C) 200 66 22 2
(D) 200 66 22
(E) 7
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
2. Suppose p and q are declared as boolean variables and have been initialized to unknown truth values.
What does the following boolean expression evaluate to?
(p && ! q) | | (p && q)
(A) The expression always evaluates to the same value as p.
(B) The expression always evaluates to the same value as q.
(C) The expression always evaluates to the same value as true.
(D) The expression always evaluates to the same value as false.
(E) The expression only evaluates to true if p and q have opposite truth values.
Similar Resources on Wayground
5 questions
AP Computer Science A Unit 5 Section 2 (Constructors)
Quiz
•
10th - 12th Grade
5 questions
S3 HTML implementation starter
Quiz
•
10th Grade - University
7 questions
Looping in java
Quiz
•
9th Grade
7 questions
Excel Formulas without function
Quiz
•
9th Grade
7 questions
boolean expressions kathryn
Quiz
•
9th Grade
7 questions
More HTML
Quiz
•
9th - 12th Grade
5 questions
Bebras Challenge 2019 A
Quiz
•
9th - 12th Grade
5 questions
TPR2251 - Pattern Recognition Quiz 1
Quiz
•
11th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
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
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
15 questions
Internet Vocabulary Notebook Check #2 - CTEA(2024)
Quiz
•
12th Grade
11 questions
Internet Terms Vocabulary- Notebook Check #1- CTEA
Quiz
•
12th Grade
39 questions
UNIT 7 and UNIT 8 — Multiple Choice Question Bank (Extracted)
Quiz
•
9th Grade
50 questions
Money Matters Fall 2025 Final Exam — Worksheet Questions
Quiz
•
12th Grade
47 questions
CSF Final Exam Practice
Quiz
•
9th - 12th Grade
