Multiple Choice Identify the
choice that best completes the statement or answers the question.
|
|
1.
|
Linear sequences must have ____.
a. | clearly stated entry and exit conditions, but they need not be
complete | b. | a complete set of instructions that may be in any order | c. | complete and correct
instructions in the proper order | d. | correct instructions, which may be
incomplete |
|
|
2.
|
A loop is also known as a(n) ____.
a. | circular sequence | c. | horseshoe sequence | b. | infinite sequence | d. | repetition
sequence |
|
|
3.
|
A(n) ____ loop is a special type of sentinel loop in which the sentinel is a
counter.
a. | sentinel controlled | c. | sentinel count | b. | count controlled | d. | counted
sentinel |
|
|
4.
|
____ is an instruction that sets the first value of the control
variable.
a. | Initialization | c. | Processing | b. | Test | d. | Update |
|
|
5.
|
The modern graphical user interface was developed at the ____.
a. | Bell Labs | c. | MIT | b. | Xerox Palo Alto Research
Center | d. | University of
Massachusetts |
|
|
6.
|
When you click the create new event button in the Event area, a menu showing
____ appears.
a. | all available worlds | c. | all event handlers | b. | the nine Alice event types | d. | all event
triggers |
|
|
7.
|
A Boolean variable stores a property that can be ____.
a. | a numeric value | c. | a number between zero and one | b. | an alphabetic
value | d. | true or
false |
|
|
8.
|
As shown in the accompanying figure, if a picture of
mouse is shown in an event handler, this means ____.
a. | When the mouse is clicked | c. | the second event is
visible | b. | Do World.BeginFlying | d. | the event handler uses a mouse |
|
|
9.
|
The methods that will be used as event handlers need to be created ____ the
events that will use them.
a. | for | c. | after | b. | before | d. | instead of |
|
|
10.
|
In the Ice Skater example in Chapter 4, without collision detection the ice
skater will ____.
a. | bounce off of other objects | b. | skate around other objects | c. | skate through other
objects | d. | collide with objects, causing the program to crash |
|
True/False Indicate whether the
statement is true or false.
|
|
11.
|
Computers sometimes round off numbers, especially if a long chain of
calculations occurs inside the computer.
|
|
12.
|
Even if multiple events require the same handler, separate handlers must be
written for each event.
|
|
13.
|
Command-driven user interfaces allow users to point and click with a
mouse.
|
|
14.
|
Modern computer systems contain facilities to let programmers set up event
listeners in their software.
|
|
15.
|
The event trigger When the world starts is the
same event trigger as the default event for Alice worlds seen in chapters one through three.
|
Completion Complete each
statement.
|
|
16.
|
There must be a(n) ____________________to determine which path the computer will
follow each time the selection sequence is being executed.
|
|
17.
|
____________________ worlds have mouse and keyboard controls that work while the
world plays, like a video game.
|
|
18.
|
Local area networks, the laser printer, the mouse, and even object-oriented
programming were developed or refined at ____________________.
|
|
19.
|
To view an object’s methods, right click on the instance in the Object
tree and then select ____________________ from the menu that appears.
|
|
20.
|
A(n) ____________________ is a storage location in the computer’s memory
that stores a property of an object.
|
|
21.
|
To create an event handler, click on the create new method button on the
____________________ tab.
|
|
22.
|
To create an event handler, after clicking on the create new method
button, enter the method name in the ____________________ dialog box.
|
|
23.
|
To create an event that fires when C is typed, replace When a key is
typed with ____________________.
|
|
24.
|
Events are used in Alice to let the user ____________________ while a world is
playing.
|
|
25.
|
As shown in the accompanying figure, if an object’s
____________________ property is set to false, the object is invisible.
|