Computer Programming 1 Flashcards

(21 cards)

1
Q

Repeats a block of statements while given condition evaluates to true.

A

While

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

Expression enclosed in parenthesis.

A

Loop Condition

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

Statements enclosed in curly braces.

A

Loop Body

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
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
5
Q

A variable whose value determines whether loop execution continues.

A

Loop Control Variable

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

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

A

For

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

Indicates the starting value for the loop control variable.

A

Initialization

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

The loop condition that controls the loop entry, and the update is the expression that alters the loop control variable.

A

Condition

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

Similar to a while loop, except that it executes the loop body first before evaluating the expression.

A

Do…while

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

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

A

Break

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

This statement causes the loop to skip the remainder of the body and immediately reevaluate its condition, and proceeds with the next iteration of the loop.

A

Continue

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

Control statements that are placed within another.

A

Nested Control Structures

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

In this, 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
14
Q

In this, the program repeatss 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
15
Q

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

A

Compound Statements or Block Statements

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

Incorporated using the if statement.

A

One-Way Selection

17
Q

Are used to choose between two alternatives.

A

Two-Way Selection

18
Q

When one control statement, either selection or repetition, is located within another.

A

Multiple Selections

19
Q

Allows a program to perform multiple selections.

20
Q

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

21
Q

Allows a single variable to be tested for equality against a list of values, depending on its value, executes a certain block of statements.

A

Switch Statement