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
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?
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 Wayground
15 questions
web design test two

Quiz
•
11th Grade
20 questions
Python Next Steps Homework Quiz

Quiz
•
8th - 10th Grade
18 questions
Foundations of Programming

Quiz
•
9th - 10th Grade
15 questions
Computer

Quiz
•
10th Grade
15 questions
CMU CS Academy Unit 3.2.1 Boolean Expressions Part 0

Quiz
•
9th Grade
20 questions
Y9 - T2 - L6 - HOMEWORK

Quiz
•
9th Grade
23 questions
GCSE Python Programming Basics

Quiz
•
11th Grade
13 questions
KS4 Python While Loops and For Loops

Quiz
•
9th - 11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade