Exam 5: Repetition Structures
Exam 1: Introduction to Alice and Objects52 Questions
Exam 2: Programming in Alice48 Questions
Exam 3: Variables, Functions, Math, and Strings46 Questions
Exam 4: Decision Structures30 Questions
Exam 5: Repetition Structures20 Questions
Exam 6: Methods, Functions, and More About Variables46 Questions
Exam 7: Events46 Questions
Exam 8: Lists and Arrays48 Questions
Exam 9: Recursion28 Questions
Select questions type
The While instruction is a posttest loop.
Free
(True/False)
4.7/5
(35)
Correct Answer:
False
Which type of structure is used to execute the same set instructions more than once?
Free
(Multiple Choice)
4.8/5
(45)
Correct Answer:
C
The following loop would execute ___________________ times:
Loop index from 0 up to (but not including) 10 times incrementing by 1
Free
(Short Answer)
4.7/5
(25)
Correct Answer:
10
The Loop instruction causes a set of instructions to execute as long as a specified Boolean expression is true.
(True/False)
4.7/5
(28)
The following loop would execute how many times? Loop index from 0 up to (but not including) 3 times incrementing by 1
(Multiple Choice)
4.9/5
(40)
The ___________________ instruction causes a set of instructions to execute a certain number of times.
(Short Answer)
4.9/5
(36)
The Loop instruction can use only integers, or whole numbers, as the number of times to repeat.
(True/False)
4.7/5
(41)
The complicated version of the loop instruction shows that the loop uses a counter variable named ___________________.
(Short Answer)
4.7/5
(35)
You can use a variable or a function call to specify the number of repetitions that a loop will perform.
(True/False)
4.8/5
(45)
The following loop would execute how many times? Loop 1 times times
(Multiple Choice)
4.9/5
(38)
Because the condition is tested before the loop is repeated, what is another term for the While instruction?
(Multiple Choice)
4.8/5
(37)
The following loop would execute how many times? Loop index from 0 up to (but not including) 4 times incrementing by 2
(Multiple Choice)
4.9/5
(30)
This is the type of variable that the Loop instruction uses internally.
(Multiple Choice)
4.7/5
(36)
The ___________________ instruction causes a set of instructions to execute as long as a specified Boolean expression is true.
(Short Answer)
4.9/5
(41)
Which type of instruction will cause a set of instructions to execute as long as a specified Boolean expression is true?
(Multiple Choice)
4.8/5
(31)
Because programmers commonly need to repeat instructions, all programming languages provide repetition structures.
(True/False)
4.9/5
(39)
The While instruction can be used to test the value of an object's property.
(True/False)
4.7/5
(31)
A(n) ___________________ loop will repeat an unlimited number of times.
(Short Answer)
4.9/5
(44)
The While instruction is also called a(n) ___________________ loop because the condition is tested before the loop is repeated.
(Short Answer)
4.8/5
(36)
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)