study maze 5 05
Download
Skip this Video
Download Presentation
Study Maze 5.05

Loading in 2 Seconds...

play fullscreen
1 / 93

Study Maze 5.05 - PowerPoint PPT Presentation


  • 77 Views
  • Uploaded on

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.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about 'Study Maze 5.05' - oma


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.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
study maze 5 05

Study Maze 5.05

Looping Structures

the input box is a
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 a1
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
accumulator variable is useful for
Accumulator variable is useful for …?

A.

B.

Keeping the loop running

  • Keeping a running total
accumulator variable is useful for1
Accumulator variable is useful for …?

A.

B.

Keeping the loop running

  • Keeping a running total
the four types of loops are
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 are1
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 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 is1
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
Do While … Loop Syntax?

A.

B.

Do While condition

Statements

Loop

Do condition

Statements

Loop While

do while loop syntax1
Do While … Loop Syntax?

A.

B.

Do While condition

Statements

Loop

Do condition

Statements

Loop While

when should you use a for next loop
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 loop1
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
The syntax for an input box is …?

A.

B.

  • StrVariable = InputBox (prompt, title)
  • StrVariable = InputBox“prompt, title”
the syntax for an input box is1
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
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 variable1
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
Looping =?

A.

B.

Circles

  • Repeated actions
looping1
Looping =?

A.

B.

Circles

  • Repeated actions
what are two different ways to test a condition
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 condition1
What are two different ways to test a condition?

A.

B.

  • Pretest and Prosttest

Pretest

and

Protest

do loop while syntax
Do … Loop While Syntax?

A.

B.

Do

Statements

Loop While condition

Do

Statements

Loop (condition)

do loop while syntax1
Do … Loop While Syntax?

A.

B.

Do

Statements

Loop While condition

Do

Statements

Loop (condition)

when should you use a while loop
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
when should you use a while loop1
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
when dealing with loops you also may use a to determine the number of times a loop executes
When dealing with loops you also may use a to determine the number of times a loop executes.

A.

counter variable

B.

Accumulator Variable

when dealing with loops you also may use a to determine the number of times a loop executes1
When dealing with loops you also may use a to determine the number of times a loop executes.

A.

counter variable

B.

Accumulator Variable

syntax for an accumulator variable is
Syntax for an accumulator variable is …?

A.

accumulator = accumulator + value

accumulator += value

B.

accumulator = accumulator + variable

accumulator += variable

syntax for an accumulator variable is1
Syntax for an accumulator variable is …?

A.

accumulator = accumulator + value

accumulator += value

B.

accumulator = accumulator + variable

accumulator += variable

an iteration is
An iteration is …?

A.

Every time the loop returns to the top

B.

Each time the loop runs

an iteration is1
An iteration is …?

A.

Every time the loop returns to the top

B.

Each time the loop runs

a pretest is
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

a pretest is1
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

for next loop syntax
For Next Loop Syntax

A.

For counter = start To end

Statements

Next counter

B.

For counter = start To end

Statements

loop

for next loop syntax1
For Next Loop Syntax

A.

For counter = start To end

Statements

Next counter

B.

For counter = start To end

Statements

loop

a flag is
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

a flag is1
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

ad