Control Structure Flashcards

1
Q

A sequential structure executes a sequence of statements in order. A statement that is used to control the flow of a program.

A

Control Structure

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

The program executes particular statements depending on the given condition.

A

Selection Structure

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

The program repeats particular statements a certain number of times, depending on the given condition.

A

Repetition Structure

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

Are incorporated using the if statement.

A

One-way Selections

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

Are used to choose between two alternatives.

A

Two-way Selections

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

Is a reserved word, which executes when the given expression of if statement evaluates to false.

A

else

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

These are any kind of statements grouped together within curly braces.

A

Compound Statements

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

When one control statement, either selection or repetition, is located within another, it is used to be _.

A

nested

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

A statement that allows a program to perform multiple selections.

A

nested if

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

Is a process in which the computer evaluates a logical expression from left to right and stops as soon as the value of the expression is determined.

A

Short-Circuit Evaluation

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

A statement that allows a single variable to be tested for equality against a list of values, and, depending on its value, executes compound statements.

A

Switch statement

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

Structures that are used to execute a block of statements repeatedly.

A

Looping

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

Repeats a block statements while a given condition evaluates to true. It evaluates the condition before executing the loop body.

A

while loop

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

A loop that continues to execute endlessly

A

Infinite loop

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

Executes a sequence of statements multiple times and abbreviates the code that manages the loop variable.

A

for loop

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

It executes the loop body first before evaluating the expression.

A

do…while loop

17
Q

Terminates the loop or switch statement and transfers the flow of the program to the statements following the loop or switch.

A

break statement

18
Q

Causes the loop to skip the remainder of its body and immediately reevaluate its condition.

A

continue statement

19
Q

Are control statements that are placed within another.

A

Nested control structures