Download
study maze 5 05 n.
Skip this Video
Loading SlideShow in 5 Seconds..
Study Maze 5.05 PowerPoint Presentation
Download Presentation
Study Maze 5.05

Study Maze 5.05

91 Views Download Presentation
Download Presentation

Study Maze 5.05

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Study Maze 5.05 Looping Structures

  2. Click On Your Character

  3. 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

  4. 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

  5. What is the most common name for a counter variable? A B i x

  6. What is the most common name for a counter variable? A B i x

  7. Accumulator variable is useful for …? A. B. Keeping the loop running • Keeping a running total

  8. Accumulator variable is useful for …? A. B. Keeping the loop running • Keeping a running total

  9. 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

  10. 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

  11. 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

  12. 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

  13. Do While … Loop Syntax? A. B. Do While condition Statements Loop Do condition Statements Loop While

  14. Do While … Loop Syntax? A. B. Do While condition Statements Loop Do condition Statements Loop While

  15. 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.

  16. 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.

  17. Winner

  18. The syntax for an input box is …? A. B. • StrVariable = InputBox (prompt, title) • StrVariable = InputBox“prompt, title”

  19. The syntax for an input box is …? A. B. • StrVariable = InputBox (prompt, title) • StrVariable = InputBox“prompt, title”

  20. What makes an accumulator variable different from a counter variable? A. B. • the value that updates the accumulator changes It adds up all values

  21. What makes an accumulator variable different from a counter variable? A. B. • the value that updates the accumulator changes It adds up all values

  22. Looping =? A. B. Circles • Repeated actions

  23. Looping =? A. B. Circles • Repeated actions

  24. What are two different ways to test a condition? A. B. • Pretest and Prosttest Pretest and Protest

  25. What are two different ways to test a condition? A. B. • Pretest and Prosttest Pretest and Protest

  26. A pretest loop only executes if the condition is for at least one time A. B. False True