wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

AP CSP Unit 3 Simple Review

Total questions: 8

Worksheet time: 1hrs 2mins

Name
Class
Date
1.

Which of the following is NOT true about functions in programming?

a)

Functions are reusable programming abstractions.

b)

Functions help reduce the complexity of writing and maintaining programs.

c)

Functions cannot make calls to other functions within the same program.

d)

Once defined, a function can be called many times from different parts of a program.

e)

Functions help break a problem into logical chunks.

2.
A piece of code you can use over and over again
a)
Function
b)
Abstraction
c)
Non-Function
3.

An extra piece of information passed to a function to customize it for a specific need

a)

Parameter

b)

Library

c)

Function

d)

Block

4.

What is the most likely outcome of running the code shown at right?

a)

It will draw a star with each side 150 pixels long.

b)

The program will stop with an error at line 3 because parameters may not be used in for loops.

c)

The program will stop with an error at line 5 because it is dividing by 0.

d)

The program will run without error, but will not draw anything.

5.

Which of the following images represents the most likely output produced by the code segment given below?

a)
b)
c)
d)
e)
6.

Look at the code. The dots are only appearing on the right side of the screen. What number should I change so the dots draw across the entire bottom?

a)

250

b)

330

c)

340

d)

450

7.

How many waves will there be?

a)

Between 5-20

b)

Between 2-10

c)

Between 100-200

d)

Unknowable

8.

How much blue will there be in the Sea Grass?

a)

Between 5-20

b)

Between 2-10

c)

Between 100-200

d)

0