
AP CSP Review
Quiz
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
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
Which of the following can be used to combine two strings to create a new string?
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
Which of the following protocols is primarily used to establish a secure connection between browsers and servers so that no data is lost?
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade