
AP CSP Review

Quiz
•
Computers
•
9th - 12th Grade
•
Hard

Heather Padilla
Used 14+ times
FREE Resource
Student preview

25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
The two code segments below are each intended to display the average of the numbers in the list numList. Assume that numList contains more than one value.
Which of the choices below best describes the two code segments?
Code segment I displays the correct average, but code segment II does not.
Code segment II displays the correct average, but code segment I does not.
Both code segments display the correct average, but code segment I requires more arithmetic operations than code segment II.
Both code segments display the correct average, but code segment II requires more arithmetic operations than code segment I.
2.
MULTIPLE SELECT QUESTION
5 mins • 1 pt
The program below is intended to count the number of prime numbers in a list called numbers and display
the result. The program uses the procedure is Prime (n), which returns true if n is a prime number and false otherwise.
The program does not work as intended.
Which two lines of code should be removed so that the program will work as intended?
Select two answers.
line 1
line 4
line 7
line 9
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
The number of mice increases by 1 each day.
The number of mice does not change from day to day.
The number of predators increases by 1 each day.
The number of predators does not change from day to day.
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
What is a sequence of instructions which a computer runs to perform a desired task?
program
compiler
assembly
algorithm
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Which expression evaluates to the highest (largest) number?
16 MOD 5-2
16 MOD (5-2)
2*16 MOD 5
5 MOD 16* 2
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Create a free account and access millions of resources
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
Discover more resources for Computers
50 questions
Trivia 7/25

Quiz
•
12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade
6 questions
RL.10.1 Cite Evidence

Quiz
•
10th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
14 questions
Algebra 1 SOL Review #1

Quiz
•
9th Grade