Programming Constructs Flashcards

1
Q

SEQUENCE:

A

the statements are execute one bye one in the order they are written

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

SELECTION:

A

The statement will be executed depending whether the condition is true or false

An IF and ELIF STATEMENT is a selection statement

ELSE IS NOT a SELECTION

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

LOOK AT NESTED IF STATEMENTS

A

LOOK AT NESTED IF STATEMENTS

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

random.randint(0, 100)

A

‘returns a random integer within a range the programmer has inputted

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

random.random()

A

‘returns a float between 0.0 and 1.0

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

What is Instillation?

A

The first time that a value is put into a variable

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