Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AP CSP Unit 1 Exam Review

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

Parameters in Functions

a)

Allow input to a function.

b)

Define the output of a function.

c)

Control the flow of a program.

d)

Store data in a variable.

2.

Correct Pseudocode

a)

Uses FUNCTION name().

b)

Uses METHOD name().

c)

Uses PROCEDURE name().

d)

Uses ROUTINE name().

3.

Order of Operations

a)

2*3+1 = 5

b)

2*3+1 = 6

c)

2*3+1 = 7

d)

2*3+1 = 8

4.

Data Types: Boolean

a)

TRUE

b)

FALSE

c)

NULL

d)

UNDEFINED

5.

Infinite Loop

a)

Happens when the condition never changes.

b)

Occurs when a program runs without stopping.

c)

Is a loop that executes a fixed number of times.

d)

Is a loop that can be exited using a break statement.

6.

Events

a)

signifies something that has happened, triggering a response, often in GUI (like button clicks), asynchronous programming (tasks completing), or threading (signaling).

b)

a type of data structure used in programming.

c)

a method for optimizing code performance.

d)

a design pattern for organizing code.

7.

Use of Lists

a)

For collections of data.

b)

For storing single values.

c)

For organizing data in a linear fashion.

d)

For creating complex data structures.

8.

Loop Condition

a)

When a loop condition changes to false.

b)

When a loop condition is never checked.

c)

When a loop condition never changes to false. It results into an infinite loop.

d)

When a loop condition is always true.

9.

Boolean

a)

Stores TRUE/FALSE.

b)

Stores numerical values.

c)

Stores text strings.

d)

Stores date values.

10.

Events

a)

Actions that trigger code: clicking, key press, timer finishing, etc.

b)

Static occurrences that do not change over time.

c)

Visual elements that enhance user experience.

d)

Background processes that run without user interaction.

11.

Computing Innovations

a)

Any device/software using computing.

b)

A type of hardware that only performs calculations.

c)

A method of storing data without using computers.

d)

A programming language used for web development.

12.

Pseudocode

a)

A programming language with strict syntax.

b)

A way to express logic without worrying about syntax.

c)

A method for debugging code.

d)

A type of markup language.

13.

Digital Data

a)

Uses bits.

b)

Uses bytes.

c)

Uses pixels.

d)

Uses characters.

14.

Repeat Until False

a)

Requires a loop & Boolean condition.

b)

Uses a single iteration without conditions.

c)

Is a method for sorting data.

d)

Is a type of error handling.

15.

Lists

a)

Indexed starting at 0.

b)

Indexed starting at 1.

c)

Indexed starting at -1.

d)

Not indexed at all.

16.

Parameters

a)

variables defined within the parentheses of a function or method definition

b)

the return values of a function

c)

the data types of variables in a program

d)

the names of functions in a program

17.

Data Types: List

a)

Ordered collection of values → ["red","blue","green"]

b)

Unordered collection of values → ["red","blue","green"]

c)

A single value → "red"

d)

A collection of unique values → ["red","blue","green"]

18.

Robot Impacts

a)

Society both positively & negatively.

b)

Society only positively.

c)

Society only negatively.

d)

Society has no impact.

19.

Assignment

a)

x = 5

b)

x = 2

c)

x = x + 3

d)

x = 3

20.

Iteration

a)

Repeating instructions (loops).

b)

A method of sorting data.

c)

A technique for debugging code.

d)

A way to optimize performance.