ENGN132 - Chapter 4 Flashcards

Key Terms Chapter 4

1
Q

What is a Control Structure?

A

A combination of individual instructions to a single logical unit with one entry point and one exit point.

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

What is a Compound Statement?

A

A group of statements bracketed by { and } that are executed sequentially.

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

Define a Selection Control Structure

A

A control Structure that chooses among alternative program statements.

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

What is a Condition?

A

An expression that is either false (represented by 0) or true (usually represented by 1)

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

What is a Logical Expression?

A

An expression that uses more of the logical operators
&& (and)
| | (or)
! (not)

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

Define Logical Complement (Negation)

A

The complement of a condition that has the value 1 (true) when the condition’s value is 0 (false); the complement of a condition has the value 0 (false) when the conditions value is non-zero (true)

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

What is a Unary Operator?

A

An operator using only one operand

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

Define Short-Circuit Evaluation

A

Stopping evaluation of a logical expression as soon as its value can be determined

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

Define Flowchart

A

A diagram that shows the step-by-step execution of a control structure

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

What is a Hand Trace/Desk Check?

A

Step-By-Step simulation of an algorithm’s execution

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

Define Decision Step

A

An algorithm step that selects on of several actions.

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

Define Pseudocode

A

A combination of English phrases an C constructs to describe algorithm steps

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

What is a Cohesive Function?

A

A function that performs a single operation

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

Define a Nested If Statement

A

An if statement with another if statement as its true task or its false task.

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