study maze 5.05
DESCRIPTION
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. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/1.jpg)
STUDY MAZE 5.05
Looping Structures
![Page 2: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/2.jpg)
Click On Your Character
![Page 3: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/3.jpg)
![Page 4: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/4.jpg)
The input box is a …?
A Bdialog 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
![Page 5: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/5.jpg)
![Page 6: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/6.jpg)
The input box is a …?
A Bdialog 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
![Page 7: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/7.jpg)
![Page 8: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/8.jpg)
What is the most common name for a counter variable?
A Bi x
![Page 9: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/9.jpg)
![Page 10: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/10.jpg)
What is the most common name for a counter variable?
A Bi x
![Page 11: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/11.jpg)
![Page 12: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/12.jpg)
Accumulator variable is useful for …?
A. B.Keeping the loop
runningKeeping a
running total
![Page 13: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/13.jpg)
![Page 14: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/14.jpg)
Accumulator variable is useful for …?
A. B.Keeping the loop
runningKeeping a
running total
![Page 15: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/15.jpg)
![Page 16: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/16.jpg)
The four types of loops are …?
A. B.Do WhileDo…Loop WhileFor…NextFor Each…Next
Do WhileDo…Loop WhileFor…NextDo For …Next
![Page 17: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/17.jpg)
![Page 18: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/18.jpg)
The four types of loops are …?
A. B.Do WhileDo…Loop WhileFor…NextFor Each…Next
Do WhileDo…Loop WhileFor…NextDo For …Next
![Page 19: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/19.jpg)
![Page 20: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/20.jpg)
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
![Page 21: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/21.jpg)
![Page 22: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/22.jpg)
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
![Page 23: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/23.jpg)
![Page 24: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/24.jpg)
Do While … Loop Syntax?
A. B.Do While conditionStatementsLoop
Do conditionStatementsLoop While
![Page 25: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/25.jpg)
![Page 26: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/26.jpg)
Do While … Loop Syntax?
A. B.Do While conditionStatementsLoop
Do conditionStatementsLoop While
![Page 27: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/27.jpg)
![Page 28: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/28.jpg)
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.
![Page 29: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/29.jpg)
![Page 30: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/30.jpg)
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.
![Page 31: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/31.jpg)
![Page 32: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/32.jpg)
Winner
![Page 33: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/33.jpg)
![Page 34: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/34.jpg)
The syntax for an input box is …?
A. B.StrVariable = InputBox (prompt, title) StrVariable = InputBox “prompt,
title”
![Page 35: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/35.jpg)
![Page 36: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/36.jpg)
The syntax for an input box is …?
A. B.StrVariable = InputBox (prompt, title) StrVariable = InputBox “prompt,
title”
![Page 37: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/37.jpg)
![Page 38: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/38.jpg)
What makes an accumulator variable different from a counter variable?
A. B. the value
that updates the
accumulator changes
It adds up all values
![Page 39: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/39.jpg)
![Page 40: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/40.jpg)
What makes an accumulator variable different from a counter variable?
A. B. the value
that updates the
accumulator changes
It adds up all values
![Page 41: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/41.jpg)
![Page 42: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/42.jpg)
Looping =?
A. B.Circles Repeated
actions
![Page 43: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/43.jpg)
![Page 44: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/44.jpg)
Looping =?
A. B.Circles Repeated
actions
![Page 45: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/45.jpg)
![Page 46: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/46.jpg)
What are two different ways to test a condition?
A. B.Pretest
and Prosttest
Pretestand
Protest
![Page 47: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/47.jpg)
![Page 48: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/48.jpg)
What are two different ways to test a condition?
A. B.Pretest
and Prosttest
Pretestand
Protest
![Page 49: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/49.jpg)
![Page 50: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/50.jpg)
A pretest loop only executes if the condition is for at least one time
A. B.False True
![Page 51: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/51.jpg)
![Page 52: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/52.jpg)
A pretest loop only executes if the condition is for at least one time
A. B.False True
![Page 53: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/53.jpg)
![Page 54: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/54.jpg)
Do … Loop While Syntax?
A. B.Do StatementsLoop While condition
Do StatementsLoop (condition)
![Page 55: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/55.jpg)
![Page 56: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/56.jpg)
Do … Loop While Syntax?
A. B.Do StatementsLoop While condition
Do StatementsLoop (condition)
![Page 57: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/57.jpg)
![Page 58: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/58.jpg)
When should you use a While Loop?
A. B.when a
variable is used in the condition
when you know how
many times the loop will
run
![Page 59: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/59.jpg)
![Page 60: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/60.jpg)
When should you use a While Loop?
A. B.when a
variable is used in the condition
when you know how
many times the loop will
run
![Page 61: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/61.jpg)
![Page 62: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/62.jpg)
Winner
![Page 63: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/63.jpg)
![Page 64: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/64.jpg)
When dealing with loops you also may use a to determine the number of times a loop executes.
A.
counter variable
B.
Accumulator Variable
![Page 65: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/65.jpg)
![Page 66: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/66.jpg)
When dealing with loops you also may use a to determine the number of times a loop executes.
A.
counter variable
B.
Accumulator Variable
![Page 67: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/67.jpg)
![Page 68: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/68.jpg)
Syntax for an accumulator variable is …?
A.accumulator = accumulator + valueaccumulator += value
B.accumulator = accumulator + variableaccumulator += variable
![Page 69: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/69.jpg)
![Page 70: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/70.jpg)
Syntax for an accumulator variable is …?
A.accumulator = accumulator + valueaccumulator += value
B.accumulator = accumulator + variableaccumulator += variable
![Page 71: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/71.jpg)
![Page 72: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/72.jpg)
An iteration is …?
A.Every time
the loop returns to
the top
B.Each time the loop runs
![Page 73: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/73.jpg)
![Page 74: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/74.jpg)
An iteration is …?
A.Every time
the loop returns to
the top
B.Each time the loop runs
![Page 75: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/75.jpg)
![Page 76: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/76.jpg)
A pretest is …?
A.Test the condition BEFORE the loop runs. If the condition is false the loop will not execute.
B.Run the loop
one time then test the condition- if
the condition is false the
loop will then terminate
![Page 77: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/77.jpg)
![Page 78: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/78.jpg)
A pretest is …?
A.Test the condition BEFORE the loop runs. If the condition is false the loop will not execute.
B.Run the loop
one time then test the condition- if
the condition is false the
loop will then terminate
![Page 79: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/79.jpg)
![Page 80: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/80.jpg)
A posttest loop will _____ execute at least one time.
A.NEVER
B.ALWAYS
![Page 81: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/81.jpg)
![Page 82: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/82.jpg)
A posttest loop will _____ execute at least one time.
A.NEVER
B.ALWAYS
![Page 83: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/83.jpg)
![Page 84: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/84.jpg)
For Next Loop Syntax
A.For counter = start To end
StatementsNext counter
B.For counter = start To end
Statementsloop
![Page 85: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/85.jpg)
![Page 86: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/86.jpg)
For Next Loop Syntax
A.For counter = start To end
StatementsNext counter
B.For counter = start To end
Statementsloop
![Page 87: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/87.jpg)
![Page 88: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/88.jpg)
A flag is …?
A.A condition
used to signify that a loop should
stop executing
B.A condition
used to signify that a loop should continue to
execute
![Page 89: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/89.jpg)
![Page 90: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/90.jpg)
A flag is …?
A.A condition
used to signify that a loop should
stop executing
B.A condition
used to signify that a loop should continue to
execute
![Page 91: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/91.jpg)
![Page 92: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/92.jpg)
Winner
![Page 93: Study Maze 5.05](https://reader035.vdocuments.us/reader035/viewer/2022062501/56816109550346895dd053f3/html5/thumbnails/93.jpg)