wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

AP CSP Unit 1 Exam Review 5th Period

Total questions: 16

Worksheet time: 8mins

Name
Class
Date
1.

Insecure Storage

a)

Of private data = harmful.

b)

Of public data = safe.

c)

Of private data = beneficial.

d)

Of public data = harmful.

2.

Correct Pseudocode

a)

Uses FUNCTION name().

b)

Uses METHOD name().

c)

Uses PROCEDURE name().

d)

Uses ROUTINE name().

3.

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.

4.

Lists

a)

Store related information together.

b)

Organize data in a hierarchical structure.

c)

Display information in a tabular format.

d)

Separate unrelated items.

5.

Sequencing

a)

Steps run in a specific order.

b)

Steps that can be executed randomly.

c)

Steps that are optional to follow.

d)

Steps that are executed in reverse order.

6.

Data Types: Boolean

a)

TRUE

b)

FALSE

c)

TRUE or FALSE

d)

Neither TRUE nor FALSE

7.

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.

8.

addOne(4)

a)

Returns 3.

b)

Returns 4.

c)

Returns 5.

d)

Returns 6.

9.

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)

Happens when the loop condition is always true.

10.

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 temporarily.

11.

Abstraction

a)

By putting repeated logic into a function or procedure, abstraction removes duplication and makes programs cleaner, shorter, and easier to maintain.

b)

Abstraction is the process of hiding the complex reality while exposing only the necessary parts.

c)

Abstraction increases the complexity of the program by adding more functions.

d)

Abstraction is only useful in object-oriented programming.

12.

Repeat Until False

a)

Requires a loop & Boolean condition.

b)

Requires a single iteration.

c)

Can be executed without a condition.

d)

Is only applicable in functional programming.

13.

Decomposition

a)

Breaking tasks into smaller functions.

b)

Combining multiple tasks into one function.

c)

Eliminating unnecessary tasks from a project.

d)

Creating a timeline for task completion.

14.

Algorithm

a)

A step-by-step process for solving a problem.

b)

A random guess to find a solution.

c)

A type of computer virus.

d)

A method of data storage.

15.

Selection

a)

Making decisions using conditionals.

b)

Choosing random items from a list.

c)

Sorting data in ascending order.

d)

Filtering out unwanted information.

16.

Conditionals

a)

Allow your program to choose between two paths.

b)

Make your program run faster.

c)

Store data in a variable.

d)

Display output to the user.