# Chapter 4 Flashcards Preview

## Intro to Programming Logic and Design > Chapter 4 > Flashcards

Flashcards in Chapter 4 Deck (29)
1
Q

If-Then decision

A

A decision structure that contains a tested Boolean expression and an action that is taken only when the expression is true.

2
Q

Boolean Expression

A

An expression that represents only ONE of two states, usually expressed as either TRUE or FALSE.

3
Q

If-Then Clause

A

The action that holds the action that results when the Boolean expressions in the decision is true.

4
Q

Else Clause

A

The action that holds action or actions that execute only when the Boolean expressions is false.

5
Q

Rational Comparison Operators

A

The symbols that express Boolean comparisons (, =, =, <>, ==)

6
Q

Trivial Expression

A

An expressions that always evaluates as the same value.

7
Q

Compound Condition

A

When multiple questions need to be answered before determining an outcome, this is constructed.

8
Q

AND Decision

A

Contains two or more decisions, all conditions must be true for an action to take place.

9
Q

Nested Decision (Nested If)

A

A decision within either the if-then or else clause of another decision.

10
Q

A

A series of nested if statements.

11
Q

Conditional AND Operator ( AND Operator)

A

A symbol that you use to combine decisions so that two or more conditions must be true for an action to occur.

12
Q

Truth Tables

A

Diagrams used in mathematics and logic to help describe the truth of an entire expression based on the truth of its parts.

13
Q

Short-circuit evaluation

A

A logical feature in which expressions in each part of a large expression are evaluated only as far as necessary to determine the final outcome.

14
Q

Or Decision

A

Contains two more decisions, if at least on e condition is met, the resulting action takes place.

15
Q

Conditional Or Operator (Or Operator)

A

A symbol that you combine decisions when any one condition can be true for an action to occur.

16
Q

Logical Not Operator

A

A symbol that reverses the meaning of a Boolean expression.

17
Q

Range Check

A

Comparing a variable to a series of values that mark the limiting ends of ranges.

18
Q

A

The logical path that can never be traveled.

19
Q

Precedence

A

The quality of an operation that determines the order in which it is evaluated.

20
Q

Less Than Operator

A

<

21
Q

Greater Than Operator

A

>

22
Q

Equal to Operator

A

= or ==

23
Q

Less Than or equal to operator

A

<=

24
Q

Greater Than or Equal to Operator

A

> =

25
Q

Not Equal to Operator

A

<> or !=

26
Q

And Operator General Rule

A

The General rule when using this decision operator, it is better to start with the decision that is less likely to be true.

27
Q

Or Operator General Rule

A

The General rule when using this decision operator, it is better to start with the decision that is more likely to be true.

28
Q

Gorge Boole (1815-1864)

A

Also known as the founder mathmatical logic, He approched logic more simply by expressing logical selections with common algebraic symbols. A logical expression was named after him.

29
Q

Greater Than (>), Less Than (>), and Equal To (=)

A

What are the three types of comparisons that any decisions can be made of?