AP CSP Review

AP CSP Review

Assessment

Quiz

Computers

9th - 12th Grade

Hard

Created by

Heather Padilla

Used 14+ times

FREE Resource

Student preview

quiz-placeholder

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

5 mins • 1 pt

Media Image

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

Media Image

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

Media Image

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?
concatenation
algorithm
conditional
variable

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?
HTTP
SMTP
SSL/TLS
TCP/IP

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?