Control Structures Flashcards

1
Q

Branch

A

Sequence of statements only executed under certain condition(s)

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

If-Else Branch

A

If decision’s expression is true then the first branch executes, else the second branch executes

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

IfElseIf Branch

A

A branch may contain a decision and branches.

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

Nested If-Else Branch

A

An if-else branch in another if-else branch

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

Multiple If Branches

A

Each decision is independent, more than one branch can execute

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

If Statement

A

If expression by sub-statements, with no else part

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

Loop

A

Repeatedly executes loop’s statements (loop body) while the loop’s expression is true

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

Iteration

A

Each time through a loop’s statements

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

Infinite Loop

A

Never stops iterating

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

Sentinel Value

A

Special value indicating the end of a list

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

For Loop

A

Iterating N times

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

While Loop

A

Execute while the loop expression evaluates to true

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

Nested Loop

A

Loop (inner loop) that appears in the body of another loop (outer loop)

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

Do-While Loop

A

First executes loop body’s statement then checks loop condition

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