1 / 93

Study Maze 5.05

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.

oma
Download Presentation

Study Maze 5.05

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

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

More Related