key terms 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

is a set of statements that execute in the order in which they appear

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

What is a decision structure?

A

a control structure that can only execute a set of statements under certain circumstances

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

What is a single alternative decision structure?

A

decision structure that provides only one alternative path of execution (‘if’ statement)

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

What does a relational operator determine?

A

whether a specific relationship exists between two values e.g. >, =, <=, ==, !=

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

What is a dual alternative decision structure?

A

decision structure has two paths of execution (‘if-else’ statement)

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

What are examples of logical operators?

A

and
not
or

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

What does a condition-controlled loop use to control the number of times it repeats?

A

a true/false condition

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

How does a count-controlled loop stop?

A

it repeats a certain number of times

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

What is a sentinel?

A

a special value that marks the end of a sequence of values

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