Chapter 3 Terms Flashcards

1
Q

if statement

A

The if statement is used for a conditional execution.

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

Control Structure

A

Statement or set of statements that control the execution of a program.

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

Decision or Selection Structure

A

Programming constructs that allow decisions to be made based on the conditions given.

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

Single Alternative Decision Structure

A

Only allows a block of code to execute if and only if a condition is true.

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

Boolean Expression

A

An expression that evaluates true or false.

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

Relational Operators

A

Symbols used to compare values.

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

<

A

Checks if the left operand is less than the right operand.

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

>

A

Checks if the left operand is greater than the right operand.

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

<=

A

Checks if the operand is less than or equal to the right.

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

> =

A

Checks if the operand is greater than or equal to the right.

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

==

A

Checks if both values are equal.

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

!=

A

Checks if both values are not equal.

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

if-else statement

A

A decision making structure in which if indicates a true statement and else indicates a false statement.

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

Dual Alternative Decision Structure

A

Gives two different pathways to execute a program based on multiple conditions.

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

Indentation

A

It is used to define relationships and statements. Part of the code’s syntax.

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

String Comparison

A

The comparisons of two strings to figure out their order.

17
Q

if-elif-else Statement

A

Allows for multiple structured conditions. It is used when there are more than two possible outcomes.

18
Q

Logical Operators

A

Operators that are used to combine the boolean values.

19
Q

and

A

This operator is true if both operands are true. If not, then it is false.

20
Q

or

A

This operator is true if one of the operands is true.

21
Q

not

A

This operator is the opposite of its operand. If true, then false and if false, then true.

22
Q

Short-Circuit

A

An evaluation in which the first operand can be determined, therefore, the second operand will not be evaluated.

23
Q

Boolean Variables

A

Variables that can either be true or false.