Programming Constructs Flashcards
1
Q
SEQUENCE:
A
the statements are execute one bye one in the order they are written
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
3
Q
LOOK AT NESTED IF STATEMENTS
A
LOOK AT NESTED IF STATEMENTS
4
Q
random.randint(0, 100)
A
‘returns a random integer within a range the programmer has inputted
5
Q
random.random()
A
‘returns a float between 0.0 and 1.0
6
Q
What is Instillation?
A
The first time that a value is put into a variable