NEW
Font size
S
M
L
XL
WorksheetsAP CSP Unit 5 Ch 1 Quiz
Total questions: 21
Worksheet time: 11mins
Name
Class
Date
1.
a function specified as part of an event listener; it is written by the programmer but called by the system as the result of an event trigger
a)
Callback function
b)
Event handling
c)
Event-driven program
d)
Event listener
2.
a program designed to run blocks of code or functions in response to specified events (e.g. a mouse click)
a)
Callback function
b)
Event handling
c)
Event-driven program
d)
Event listener
3.
an overarching term for the coding tasks involved in making a program respond to events by triggering functions.
a)
Callback function
b)
Event handling
c)
Event-driven program
d)
Event listener
4.
a command that can be set up to trigger a function when a particular type of event occurs on a particular UI element.
a)
Callback function
b)
Event handling
c)
Event-driven program
d)
Event listener
5.
An action that causes something to happen
a)
UI Elements
b)
Event
c)
Event listener
d)
User Interface
6.
on-screen objects, like buttons, images, text boxes, pull down menus, screens and so on
a)
UI Elements
b)
Event
c)
Event listener
d)
User Interface
7.
The visual elements of a program through which a user controls or communicates with the application. Often abbreviated U
a)
UI Elements
b)
Event
c)
Event listener
d)
User Interface
8.
Finding and fixing problems in an algorithm or program
a)
Debugging
b)
Event-driven program
c)
Event handling
d)
Program Testing
9.
All values in a programming language have a "type" - such as a Number, Boolean, or String - that dictates how the computer will interpret it. For example 7+5 is interpreted differently from "7"+"5"
a)
Data Type
b)
Variable
c)
Expression
d)
If-Statement
10.
Any valid unit of code that resolves to a value
a)
Data Type
b)
Variable
c)
Expression
d)
Global Variable
11.
A placeholder for a piece of information that can change
a)
Data Type
b)
Variable
c)
Expression
d)
Global Variable
12.
The equality operator (sometimes read: "equal equal") is used to compare two values, and returns a Boolean (true/false). Avoid confusion with the assignment operator "=",
a)
Variable Scope
b)
Global Variable
c)
Local Variable
13.
A variable whose scope is covers the whole program, it can be used and updated by any part of the code. Its scope is typically derived from the variable being declared (created) outside of any function, object, or method.
a)
Variable Scope
b)
Global Variable
c)
Expression
d)
Local Variable
14.
A variable that can only be seen, used and updated by code within the same scope. Typically this means it was declared (created) inside a function -- includes function parameter variables.
a)
Variable Scope
b)
Global Variable
c)
Expression
d)
Local Variable
15.
The common programming structure that implements "conditional statements".
a)
Data Type
b)
If-Statement
c)
Do While Looop
d)
While Loop
16.
Typically used when joining together text in programming (e.g. "Hello, "+name)
a)
String
b)
Expression
c)
Variable
d)
Concatenate
17.
Any sequence of characters between quotation marks (ex: "hello", "42", "See you tomorrow")
a)
String
b)
Expression
c)
Variable
d)
Concatenate
18.
A generic term for a type of programming statement (usually an if-statement) that uses a Boolean condition to determine, or choose, whether or not to run a certain block of statements
a)
If-Statement
b)
Expression
c)
Selection
d)
Concatenate
19.
Statements that only run under certain conditions
a)
If-Statement
b)
Conditionals
c)
Selection
d)
Concatenate
20.
A single value of either TRUE or FALSE
a)
Expression
b)
Boolean
c)
Conditionals
d)
Boolean Expression
21.
in programming, an expression that evaluates to True or False
a)
Expression
b)
Boolean
c)
Conditionals
d)
Boolean Expression
Reset
