Lesson 10: Repetition Structure Flashcards

1
Q

These allow you to run one or more lines of
code repetitively.

A

Visual Basic Loop
Structures

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Required. Boolean expression. If
condition is Nothing, Visual Basic
treats it as False

A

Condition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Optional. One or more statements
following While which run every time
condition is True

A

statements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Required. Terminates the definition of
the While block

A

End While

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Allows you to test a condition at either
the beginning or the end of a loop
structure.

A

Do LOOP

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Required. Starts the definition of the Do Loop

A

Do

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Required unless Until is used. Repeat the loop until condition is False.

A

While

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Required unless While is used. Repeat the loop until condition is True

A

Until

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Optional. One or more statements that are repeated while, or until, condition
is True

A

statements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Optional. Boolean expression. If condition is Nothing, Visual Basic treats it as
False

A

condition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Required. Terminates the definition of the Do Loop.

A

Loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Performs the loop a set
number of times. It uses a loop control
variable, also called a counter, to keep track
of the repetitions.

A

For Loop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Required in the For statement. Numeric variable. The control
variable for the loop.

A

Counter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Optional. Data type of counter.

A

datatype

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Optional. Numeric expression. The amount by which counter is
incremented each time through the loop

A

step

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Required. Numeric expression. The initial value of counter.

A

start

17
Q

Required. Numeric expression. The final value of counter.

A

end

18
Q

Optional. One or more statements between For and Next that run
the specified number of times.

A

statements

19
Q

also called “foreach” loop runs a set of
statements once for each
element in a collection.

A

The For Each,

19
Q

Required. Terminates the definition of the For Loop.

A

next

20
Q

Required in the For Each statement. Optional in the Next
statement. Variable. Used to iterate through the elements of
the collection

A

element

21
Q

Required if element isn’t already declared. Data type of
element.

A

datatype

22
Q

Required. A variable with a type that’s a collection type or
Object. Refers to the collection over which the statements are
to be repeated.

A

group

23
Q

Optional. One or more statements between For Each and
Next that run on each item in group.

A

statements