Decision Structure Flashcards

1
Q

What is a control structure?

A

A logical design that controls the order in which a set of statements execute.

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

What is a sequence structure?

A

A set of statements that executes the order in they appear

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

Diamond symbol in flowchart

A

some condition must be tested.

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

one alternative path of execution

A

single alternative decision structure.

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

the expressions that are tested by if statements is called

A

Boolean expressions.

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

What is a relational operator?

A

It determines weather a specific relationship exists between two values,

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

if else statement

A

It will execute one block of statement if the condition is true and another if the condition is false

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

two possible paths of execution

A

dual alternative decision structure.

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

A-Z

A

65-90

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

a-z

A

97-122

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

0-9

A

48-57

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

blank space

A

32

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

What does logical operators ‘and’ ; ‘or’ allow you to do?

A

connect multiple Boolean expressions to create a compound expression.

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

Both “and” and “or” perform what?

A

short circuit evaluation

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

Boolean values references what?

A

Two values : True or False

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

Go : True

What is the datatype for GO?

A

Bool data type

17
Q

Boolean variables are commonly used as?

A

Flags

18
Q

What is a flag?

A

A variable that signals when some conditions exists within the program

19
Q

What values can you assign a bool variable?

A

true

false