Chapter 4 Key Terms Flashcards

1
Q

Repetition Structure

A

Also referred to as a loop, this construct allows for a block of code to be executed or ran multiple times.

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

Condition-Controlled Loop

A

A type of loop that only runs if the specified condition remains true.

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

Counter-Controlled Loop

A

A type of loop that iterates a certain number of times based on the preset limit.

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

while Loop

A

Repeatedly executes code as long as the specified condition is true.

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

Pretest Loop

A

A type of loop in which the condition is checked prior to the execution.

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

Infinite Loop

A

A type of loop that runs indefinitely.

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

for Loop

A

A type of loop used to iterate over a sequence. It will then execute code for each item in that sequence.

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

range

A

A built in function that generates number sequences in a specified range. Mostly used in regards to for loops.

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

iterable

A

Any object that can return its elements one by one. It allows looping over elements of a sequence or collection.

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

Target Variable

A

The variable in which the machine tries to predict or classify.

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

Accumulator

A

A variable that is used to accumulate or store intermediate results during the execution of a loop.

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

Augmented Assignment Operators

A

A set of operators that combine an arithmetic or bitwise operation with an assignment.

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

Sentinel

A

A value used to mark the end of a sequence or condition.

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

Input Validation

A

Checking and verifying data entered to ensure that it meets specific criteria before being executed by the program.

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

Nested Loop

A

A loop inside of another loop.

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