logic and computers chapter 5-9 Flashcards
(41 cards)
This instruction is used to repeat other instructions a specific number of times.
C. Loop
This is a type of variable that the Loop instruction uses internally.
B. Counter
This is a loop that repeats without ending.
A. Infinite
This instruction is a count-controlled loop.
C. Loop
This instruction is a conditional loop.
D. While
This is a loop that is inside another loop.
A. Nested loop
A loop is inside another loop. The outer loop repeats 5 times and the inner loop repeats 4 times. How many times will a statement that is inside the inner loop execute?
D. 20 times
If you want to add a new behavior to an object, you add this type of method to it.
B. Class-level method
After you have saved an object to a new class, you do this to add an instance of it to a world.
C. Click File, then Import…
In this process, the programmer goes through each step in an algorithm, expanding it until it has enough detail to be translated into actual instructions.
B. Divide and conquer
This is a special variable that holds an argument being passed into a method.
C. Parameter
In Alice, a property is really one of these.
B. A class-level variable
This instruction is required in all functions.
A. Return
This is the process of breaking a long complex algorithm into small manageable pieces.
D. Divide and conquer
To insert a graphical image into a world, you create one of these.
B. Billboard
This property specifies that the object will move with another object.
A. vehicle
You use this primitive method call to move the camera to a dummy object.
C. camera.set point of view to
This is what the process of responding to an event is called.
C. Handling the event
When an Alice world is first created, this is the event for which the only tile appears in the Events Editor.
A. When the world starts
This is an event handler.
B. A method that is executed in response to an event
This is what BDE stands for
C. Begin, During, End
This world function returns a random number.
D. random number
By default, a random number is between these two values.
B. 0 and 1
Which of the following characteristics do you not specify with the hebuilder or shebuilder tools?
A. Hat