NEW
Font size
S
M
L
XL
WorksheetsAP CSP Unit 5 Test (Part 1)
Total questions: 14
Worksheet time: 7mins
Name
Class
Date
1.
An action that causes something to happen.
a)
Callback
b)
Local Variable
c)
Event
d)
Function
2.
A program designed to run blocks of code or functions in response to specified events (e.g. a mouse click)
a)
Event Listener
b)
UI Element
c)
Event-driven Program
d)
User Interface
3.
An overarching term for the coding tasks involved in making a program respond to events by triggering functions.
a)
Event-handling
b)
User Interface
c)
Data type
d)
UI Element
4.
Finding and fixing problems in your algorithm or program.
a)
Concentrating
b)
Debugging
c)
Repairing
d)
Concatentating
5.
A placeholder for a piece of information that can change.
a)
Variable
b)
String
c)
Conditional
d)
Boolean
6.
This is used to compare two values, and returns a Boolean (true/false)
a)
Local Variable
b)
Global Variable
c)
==
d)
Expression
7.
The common programming structure that implements "conditional statements".
a)
If-statement
b)
Conditional
c)
Boolean
d)
==
8.
Statements that only run under certain conditions.
a)
Conditionals
b)
Booleans
c)
Expressions
d)
Event Handlers
9.
A generic term for a type of programming statement (usually an if-statement) that uses a Boolean condition to determine, or select, whether or not to run a certain block of statements.
a)
Selection
b)
Iteration
c)
Sequencing
10.
A single value of either TRUE or FALSE
a)
Data Type
b)
String
c)
Variable
d)
Boolean
11.
A variable that is declared inside a function -- includes function parameter variables.
a)
Event Handler
b)
Expression
c)
Global Variable
d)
Local Variable
12.
An action that causes something to happen.
a)
Event
b)
Action
c)
Call
d)
Program
13.
A command that can be set up to trigger a function when a particular type of event occurs on a particular UI element.
a)
Event Listener
b)
Event Trigger
c)
Function Listener
d)
Function Trigger
14.
Any valid unit of code that resolves to a value
a)
Expression
b)
Equation
c)
Program
d)
Formula
Reset
