S11 - 54 selection Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

what are the three basic programming constructs?

A

sequence, selection and iteration

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

define sequence

A

2 or more statements executed one after the other

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

the second statement…

A

is an assignment statement in which a value is assigned to a variable

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

when is a switch statement useful?

A

when a choice has to be made between several alternatives

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

a switch statement is an alternative…

A

structure to a nested if statement

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

state the 3 boolean operators

A

AND, OR, NOT

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