{ "@context": "https://schema.org", "@type": "Organization", "name": "Brainscape", "url": "https://www.brainscape.com/", "logo": "https://www.brainscape.com/pks/images/cms/public-views/shared/Brainscape-logo-c4e172b280b4616f7fda.svg", "sameAs": [ "https://www.facebook.com/Brainscape", "https://x.com/brainscape", "https://www.linkedin.com/company/brainscape", "https://www.instagram.com/brainscape/", "https://www.tiktok.com/@brainscapeu", "https://www.pinterest.com/brainscape/", "https://www.youtube.com/@BrainscapeNY" ], "contactPoint": { "@type": "ContactPoint", "telephone": "(929) 334-4005", "contactType": "customer service", "availableLanguage": ["English"] }, "founder": { "@type": "Person", "name": "Andrew Cohen" }, "description": "Brainscape’s spaced repetition system is proven to DOUBLE learning results! Find, make, and study flashcards online or in our mobile app. Serious learners only.", "address": { "@type": "PostalAddress", "streetAddress": "159 W 25th St, Ste 517", "addressLocality": "New York", "addressRegion": "NY", "postalCode": "10001", "addressCountry": "USA" } }

Chapter 4 Flashcards

(29 cards)

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.

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

Boolean Expression

A

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

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

If-Then Clause

A

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

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

Else Clause

A

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

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

Rational Comparison Operators

A

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

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

Trivial Expression

A

An expressions that always evaluates as the same value.

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

Compound Condition

A

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

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

AND Decision

A

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

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

Nested Decision (Nested If)

A

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

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

Cascading If Statement

A

A series of nested if statements.

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

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

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

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

Or Decision

A

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

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

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

Dead Path (Unreachable Path)

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

21
Q

Greater Than Operator

22
Q

Equal to Operator

23
Q

Less Than or equal to operator

24
Q

Greater Than or Equal to Operator

25
Not Equal to Operator
<> or !=
26
And Operator General Rule
The General rule when using this decision operator, it is better to start with the decision that is less likely to be true.
27
Or Operator General Rule
The General rule when using this decision operator, it is better to start with the decision that is more likely to be true.
28
Gorge Boole (1815-1864)
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
Greater Than (>), Less Than (>), and Equal To (=)
What are the three types of comparisons that any decisions can be made of?