
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?
Create a free account and access millions of resources
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
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
20 questions
Pythagorean Theorem and Their Converse
Quiz
•
8th - 9th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
10 questions
Thanksgiving Trivia Challenge: Test Your Knowledge!
Interactive video
•
6th - 10th Grade