Lesson4- 11 Flashcards

(9 cards)

1
Q

definition of control structure

A

the order in which program statements are executed

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

sequential structure

A

set of statements which are executed in the order they occcur

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

decision-making structure

A

a certain action is performed only when specific conditions happen (IF function idea)

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

meaning ==

A

equal to

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

meaning !=

A

different from

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

if is always followed by an else.. if not by an elif which is followed by an else

A

-

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

meaning of (not) operator

A

return True if the argument is false and false when argument is true

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

syntax of range function

A

range(start,stop[step])

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

if within a while loop, at some point you want to go to the next iteration, to skip the following lines of code one must…

A

use (continue)

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