logic and computers chapter 5-9 Flashcards
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