930 likes | 1.07k Views
Study Maze 5.05. Looping Structures. Click On Your Character. The input box is a …?. A. B. dialog box that pops up and prompts the user for input. Text area that pops up and prompts the user for to wait while it gets input. The input box is a …?. A. B.
E N D
Study Maze 5.05 Looping Structures
The input box is a …? A B dialog box that pops up and prompts the user for input • Text area that pops up and prompts the user for to wait while it gets input
The input box is a …? A B dialog box that pops up and prompts the user for input • Text area that pops up and prompts the user for to wait while it gets input
What is the most common name for a counter variable? A B i x
What is the most common name for a counter variable? A B i x
Accumulator variable is useful for …? A. B. Keeping the loop running • Keeping a running total
Accumulator variable is useful for …? A. B. Keeping the loop running • Keeping a running total
The four types of loops are …? A. B. Do While Do…Loop While For…Next For Each…Next Do While Do…Loop While For…Next Do For …Next
The four types of loops are …? A. B. Do While Do…Loop While For…Next For Each…Next Do While Do…Loop While For…Next Do For …Next
A posttest is …? A. B. • Test the condition BEFORE the loop runs. If the condition is false the loop will not execute. • Run the loop one time then test the condition- if the condition is false the loop will then terminate
A posttest is …? A. B. • Test the condition BEFORE the loop runs. If the condition is false the loop will not execute. • Run the loop one time then test the condition- if the condition is false the loop will then terminate
Do While … Loop Syntax? A. B. Do While condition Statements Loop Do condition Statements Loop While
Do While … Loop Syntax? A. B. Do While condition Statements Loop Do condition Statements Loop While
When should you use a for next loop? A. B. • when you know how many times the loop will run • when a variable is used in the condition.
When should you use a for next loop? A. B. • when you know how many times the loop will run • when a variable is used in the condition.
The syntax for an input box is …? A. B. • StrVariable = InputBox (prompt, title) • StrVariable = InputBox“prompt, title”
The syntax for an input box is …? A. B. • StrVariable = InputBox (prompt, title) • StrVariable = InputBox“prompt, title”
What makes an accumulator variable different from a counter variable? A. B. • the value that updates the accumulator changes It adds up all values
What makes an accumulator variable different from a counter variable? A. B. • the value that updates the accumulator changes It adds up all values
Looping =? A. B. Circles • Repeated actions
Looping =? A. B. Circles • Repeated actions
What are two different ways to test a condition? A. B. • Pretest and Prosttest Pretest and Protest
What are two different ways to test a condition? A. B. • Pretest and Prosttest Pretest and Protest
A pretest loop only executes if the condition is for at least one time A. B. False True