Study maze 5 05
Download
1 / 93

Study Maze 5.05 - PowerPoint PPT Presentation


  • 76 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 =? variable?

A.

B.

Circles

  • Repeated actions


Looping1
Looping =? variable?

A.

B.

Circles

  • Repeated actions


What are two different ways to test a condition
What are two different ways to test a condition? variable?

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? variable?

A.

B.

  • Pretest and Prosttest

Pretest

and

Protest


A pretest loop only executes if the condition is for at least one time
A pretest loop only executes if the condition is variable? for at least one time

A.

B.

False

True


A pretest loop only executes if the condition is for at least one time1
A pretest loop only executes if the condition is variable? for at least one time

A.

B.

False

True


Do loop while syntax
Do … Loop While Syntax? variable?

A.

B.

Do

Statements

Loop While condition

Do

Statements

Loop (condition)


Do loop while syntax1
Do … Loop While Syntax? variable?

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? variable?

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? variable?

A.

B.

when a variable is used in the condition

  • when you know how many times the loop will run


Winner1
Winner variable?


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 variable?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 variable?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 …? variable?

A.

accumulator = accumulator + value

accumulator += value

B.

accumulator = accumulator + variable

accumulator += variable


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

A.

accumulator = accumulator + value

accumulator += value

B.

accumulator = accumulator + variable

accumulator += variable


An iteration is
An iteration is …? variable?

A.

Every time the loop returns to the top

B.

Each time the loop runs


An iteration is1
An iteration is …? variable?

A.

Every time the loop returns to the top

B.

Each time the loop runs


A pretest is
A pretest is …? variable?

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 …? variable?

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 posttest loop will execute at least one time
A posttest loop will variable?_____execute at least one time.

A.

NEVER

B.

ALWAYS


A posttest loop will execute at least one time1
A posttest loop will variable?_____execute at least one time.

A.

NEVER

B.

ALWAYS


For next loop syntax
For Next Loop Syntax variable?

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 variable?

A.

For counter = start To end

Statements

Next counter

B.

For counter = start To end

Statements

loop


A flag is
A flag is …? variable?

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 …? variable?

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


Winner2
Winner variable?


ad