Deck 7: Events
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Question
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/46
Play
Full screen (f)
Deck 7: Events
1
When an event occurs the corresponding event handler is executed.
True
2
What tools can be used to design your own people objects?
A) Alice builders
B) Character builders
C) Gallery builders
D) People builders
E) None of these
A) Alice builders
B) Character builders
C) Gallery builders
D) People builders
E) None of these
B
3
Which of the following events should be used to cause a method to execute when a world is played?
A) Let the mouse move the camera
B) Play World
C) When the program starts
D) When the world starts
E) None of these
A) Let the mouse move the camera
B) Play World
C) When the program starts
D) When the world starts
E) None of these
D
4
Which of the following events should be used to enable the user to move Alice forward by clicking the up arrow key?
A) Let the mouse move the camera
B) Let the arrow keys move
C) When a key is typed
D) When the world starts
E) None of these
A) Let the mouse move the camera
B) Let the arrow keys move
C) When a key is typed
D) When the world starts
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
5
When the world starts is the name of an event handler.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
6
Which of the following events should be used to cause a method to execute when the letter 'X' is typed?
A) Let the mouse move the camera
B) When a key is typed
C) When the mouse is clicked on something
D) When the world starts
E) None of these
A) Let the mouse move the camera
B) When a key is typed
C) When the mouse is clicked on something
D) When the world starts
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
7
Which of the following events should be used to enable the user to move the camera around by dragging the mouse around in the world?
A) Let the mouse move the camera
B) When a key is typed
C) When the mouse is clicked on something
D) When the world starts
E) None of these
A) Let the mouse move the camera
B) When a key is typed
C) When the mouse is clicked on something
D) When the world starts
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
8
Another term for the method that executes in response to a particular event is:
A) Event
B) Event handler
C) Property
D) Function
E) None of these
A) Event
B) Event handler
C) Property
D) Function
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
9
The process of responding to an event is commonly called alternating instance response.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
10
What method is used to play a sound?
A) Make sound
B) Play song
C) Play sound
D) Play
E) None of these
A) Make sound
B) Play song
C) Play sound
D) Play
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
11
Which of the following parts of a BDE event should be used for code that should execute once when the event stops?
A) Begin
B) During
C) End
D) Stop
E) None of these
A) Begin
B) During
C) End
D) Stop
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
12
Which of the following parts of a BDE event should be used for code that should execute once when the event first occurs?
A) Begin
B) During
C) End
D) Start
E) None of these
A) Begin
B) During
C) End
D) Start
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
13
When a world is first created, the only tile that appears in the Events Editor is for the When the world starts event.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
14
Which of the following statements is useful for debugging a program?
A) Debug
B) Display
C) Print
D) Write
E) None of these
A) Debug
B) Display
C) Print
D) Write
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
15
What are the two ways to associate a sound with an object?
A) Get sound and import sound
B) Get sound and record sound
C) Import sound and record sound
D) Make sound and get sound
E) None of these
A) Get sound and import sound
B) Get sound and record sound
C) Import sound and record sound
D) Make sound and get sound
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
16
When the world starts is an example of which of the following:
A) An event
B) An event handler
C) A method
D) A function
E) None of these
A) An event
B) An event handler
C) A method
D) A function
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
17
Which of the following parts of a BDE event should be used for code that should continue to execute as long as the event continues to occur?
A) Begin
B) During
C) End
D) While
E) None of these
A) Begin
B) During
C) End
D) While
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
18
Which of the following events should be used to cause a method to execute when a condition you have specified becomes true?
A) While something is true
B) When something becomes true
C) When a key is typed
D) When a variable changes
E) None of these
A) While something is true
B) When something becomes true
C) When a key is typed
D) When a variable changes
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
19
Which of the following is a BDE event?
A) Let the mouse move the camera
B) Let the arrow keys move
C) When a key is typed
D) While a key is pressed
E) None of these
A) Let the mouse move the camera
B) Let the arrow keys move
C) When a key is typed
D) While a key is pressed
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
20
The create new event button is located in the:
A) Details Panel
B) Events Editor
C) Method Editor
D) Object Editor
E) None of these
A) Details Panel
B) Events Editor
C) Method Editor
D) Object Editor
E) None of these
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
21
An event such as the While a key is pressed event is also referred to as a(n) ___________________ event because of the three slots that are available for the three different aspects of the event.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
22
A(n) ___________________ is an action that takes place while a world is playing.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
23
The ___________________ event should be used to make the world stop if the letter 'Q' is pressed.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
24
Events enable the creation of worlds that are more ___________________.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
25
The ability to generate ___________________ is important for some types of applications, particularly games and simulations.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
26
The When a key is typed event could be used if the user wants the world to end if the user types the letter 'Q'.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
27
The random number function is a world-level function.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
28
In order to create the While a key is pressed event, the ___________________ event must first be created.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
29
The method my first method is an example of an event ___________________.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
30
A(n) ___________________ is a method that automatically executes in response to an event.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
31
Games typically only utilize a single event handler in order to respond to various user interactions.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
32
The print statement is useful for displaying diagnostic messages that can assist with debugging a program.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
33
The When a key is typed event can only be used to respond to letters and/or numbers being typed.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
34
The character builder only enables you to design male characters.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
35
When the world starts is an example of a(n) ___________________ that Alice can detect.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
36
A program cannot be written to respond to more than one event.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
37
The ___________________ function is used to generate a fractional number between 0 and 1.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
38
BDE events have three parts: Begin, During, and End.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
39
Events enable the creation of worlds that are more interactive.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
40
The ability to generate random numbers is important for some types of applications, particularly games and simulations.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
41
The ___________________ portion of a BDE event executes once when the event stops.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
42
The ___________________ statement is useful for displaying diagnostic messages that can assist with debugging a program.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
43
The ___________________ builders enable you to design your own people objects.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
44
The ___________________ portion of a BDE event executes as long as the event continues to occur.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
45
Games often require numerous ___________________ in order to respond to various user interactions.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck
46
The ___________________ portion of a BDE event executes once when the event first occurs.
Unlock Deck
Unlock for access to all 46 flashcards in this deck.
Unlock Deck
k this deck