wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

[AP CSP] Unit 4 Review: Functions and Lists

Total questions: 10

Worksheet time: 1hrs 27mins

Name
Class
Date
1.

A collection in which the items are ordered and can be referenced by an index value.

a)

List

b)

Procedures

c)

Functions

d)

Conditions

2.

Repeating code that executes over a sequence of items or values.

a)

For Loop

b)

While Loop

c)

Functions

d)

Conditional Loops

3.

This is a block of organized, reusable code thatis used to perform a single, related action. Examples include print(),str(), sqrt().

a)

Lists

b)

Parameters

c)

Functions

d)

Modules

4.

Data passed into a function for processing.

a)

Lists

b)

Parameters

c)

Subroutines

d)

Modules

5.

Data passed back to calling code when a function has completed its execution.

a)

Lists

b)

Parameters

c)

Subroutines

d)

Return Value

6.

Repeating code that executes as long as a specific condition remains True.

a)

Conditional statement

b)

While Loop

c)

Function

d)

For Loop

7.

What is the output of the following code?

a)

150.0

b)

25.0

c)

250.0

d)

15.0

8.

What is the output of the following code?

a)

112.0

b)

25.0

c)

10.0

d)

17.5

9.

What is the output of the following code?

a)

Tracy McGrady : 81

b)

Kobe Bryant : 69

c)

Lebron James : 69

d)

Michael Jordan : 81

10.

What is the output of the following code?

a)

84

b)

72

c)

24

d)

28