Consider the code shown here which uses the variable points. Which of the following will always produce the same result as this code, regardless of the value of points?
AP CS A Unit 3 Test PRACTICE

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Scott Chamberlain
Used 11+ times
FREE Resource
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
I, II, and III
II and III only
III only
II only
I and II only
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What is output by the code shown here?
11
10
14
13
Error
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Consider the following potential replacements for /* missing code */. Which of these replacements will cause the code segment to always print no?
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Which boolean condition is true, given:
int x = 2;
int y = 3;
x > y || y <= x
x != y && y == x
x >= y || !(y >= x)
!(x >= y) && !(x != y)
x == y || y > x
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
!P && !Q
!P && Q
!(P && !Q)
!P && (P && !Q)
(P || Q) && !Q
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
To test if air pressure p is normal (between 27 and 35, including 27 and excluding 35) you would use the following if statement:
if (p ___ 27 ___ p ___ 35)
Which set of symbols - in the order given - correctly fills in the blanks?
<=, &&, >
>=, ||, <
>=, &&, <
>, &&, <=
<, ||, >=
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
Which statement below is equivalent to the one shown here?
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Java, part I

Quiz
•
11th Grade - University
20 questions
CSS Quiz

Quiz
•
7th - 12th Grade
13 questions
CSS Selector Practice

Quiz
•
10th - 12th Grade
17 questions
Web Design- HTML Review

Quiz
•
KG - University
21 questions
CSS Basics

Quiz
•
6th - 12th Grade
20 questions
HTML5 Basics

Quiz
•
6th - 12th Grade
20 questions
HTML Tags Quiz

Quiz
•
12th Grade
14 questions
C++ - Loops and Random Numbers

Quiz
•
9th - 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