wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

AP CSP Unit 5 Review 2021

Total questions: 21

Worksheet time: 11mins

Name
Class
Date
1.

An action that causes something to happen.

a)

Event

b)

Call

c)

Action

d)

Program

2.

The visual elements of a program through which a user controls or communications the application.

a)

User Interface

b)

Game Screen

c)

Dialog Box

d)

Visual System

3.

Finding and fixing problems in your algorithm or program

a)

Debugging

b)

Cracking

c)

Hacking

d)

Problem Solving

4.

Any valid unit of code that resolves to a value

a)

Program

b)

Equation

c)

Expression

d)

Formula

5.

A placeholder for a piece of information that can change

a)

Element

b)

Proxy

c)

Condition

d)

Variable

6.

The common programming structure that implements "conditional statements."

a)

Then-Statements

b)

When-Statements

c)

If-Statements

d)

Command-Statements

7.

Any sequence of letters, numbers, or characters in a program between quotation marks "".

a)

Rope

b)

Value

c)

Number

d)

String

8.

This term refers to any single value as true or false:

a)

Null

b)

Julian

c)

Boolean

d)

Conditional

9.

Statements that only run under certain conditions

a)

Boolean

b)

Conditional

10.

All values in a programming language have a "type" - such as a Number, Boolean, or String - that dictates how the computer will interpret it.

a)

Variable

b)

Expression

c)

Element

d)

Data Type

11.

This is used to compare two values, and returns a Boolean (true/false)

a)

Local Variable

b)

==

c)

=

d)

Global Variable

12.

A variable whose scope is typically derived from the variable being declared outside of any function, object, or method.

a)

Local Variable

b)

Global Variable

c)

Regional Variable

d)

Expression

13.

A variable that is declared inside a function -- includes function parameter variables.

a)

Event Handler

b)

Regional Variable

c)

Local Variable

d)

Global Variable

14.

In programming, an expression that evaluates to true or false.

a)

Global Expression

b)

Variable Expression

c)

Boolean Expression

d)

Algebraic Expression

15.

Which prompt tells the computer to move to a new line for a string output.

a)

\n

b)

\newLine

c)

\nu

d)

\new

16.

Which symbol represents "or" in JavaScript?

a)

| |

b)

!=

c)

$

d)

==

17.

A function the programmer writes that is triggered by user interaction.

a)

Booleans

b)

Event Handlers

c)

Buttons

d)

Functions

18.

A loop which counts the iterations of a block of code and runs it determined by the value of i.

a)

Event Handler

b)

List

c)

For Loop

d)

If-Statement

19.

This type of variable stores several values or strings inside of it for use within a program.

a)

For Loop

b)

Event Handler

c)

Traversal

d)

List [ ]

20.

This command places an item at the end of a variable list.

a)

list.length

b)

list.join

c)

insertItem

d)

appendItem

21.

When a program processes through each part of a list to find items which meet certain criteria this is called a:

a)

For Loop

b)

List Loop

c)

Traversal

d)

Event Handler