AP CSP Chapter 5.1-5.5 Vocab Questions with Correct Answers
Question 1:
Callback function
Answer:
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 (the green part of the function)
Question 2:
Event
Answer:
An action that causes something to happen.
Question 3:
Event-driven program
Answer:
a program designed to run blocks of code or functions in response to specified events (e.g. a
mouse click)
Question 4:
Event handling
Answer:
an overarching term for the coding tasks involved in making a program respond to events by
triggering functions.
Question 5:
Event listener
Answer:
a command that can be set up to trigger a function when a particular type of event
Question 6:
The onEvent block is a type of event-handling function called event listener
Answer:
occurs on a particular UI element.
, Question 7:
UI Elements
Answer:
on-screen objects, like buttons, images, text boxes, pull down menus, screens and so on.
Question 8:
User Interface
Answer:
The visual elements of a program through which a user controls or communicates with the
application. Often abbreviated UI.
Question 9:
UI Events
Answer:
controls like click, scroll, move mouse, type keyboard key, etc.
Question 10:
Users trigger events
Answer:
Events occur when users click a button, tap the screen, move the mouse, type a key on the
keyboard, etc.
Question 11:
Events trigger code
Answer:
When an event occurs or "fires" it can be used to trigger a particular javascript
Question 12:
Good ID's are.meaningful and descriptive.
Answer:
function.
Question 1:
Callback function
Answer:
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 (the green part of the function)
Question 2:
Event
Answer:
An action that causes something to happen.
Question 3:
Event-driven program
Answer:
a program designed to run blocks of code or functions in response to specified events (e.g. a
mouse click)
Question 4:
Event handling
Answer:
an overarching term for the coding tasks involved in making a program respond to events by
triggering functions.
Question 5:
Event listener
Answer:
a command that can be set up to trigger a function when a particular type of event
Question 6:
The onEvent block is a type of event-handling function called event listener
Answer:
occurs on a particular UI element.
, Question 7:
UI Elements
Answer:
on-screen objects, like buttons, images, text boxes, pull down menus, screens and so on.
Question 8:
User Interface
Answer:
The visual elements of a program through which a user controls or communicates with the
application. Often abbreviated UI.
Question 9:
UI Events
Answer:
controls like click, scroll, move mouse, type keyboard key, etc.
Question 10:
Users trigger events
Answer:
Events occur when users click a button, tap the screen, move the mouse, type a key on the
keyboard, etc.
Question 11:
Events trigger code
Answer:
When an event occurs or "fires" it can be used to trigger a particular javascript
Question 12:
Good ID's are.meaningful and descriptive.
Answer:
function.