S11 - 53 Programming basics Flashcards

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

what are the 3 programming constructs?

A

Sequence, selection and iteration

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

what is sequence in a program?

A

Executing one instruction after another

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

name a few selection statements

A

IF
ELSE

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

what are the 5 data types?

A

+ integer
+ real/float
+ boolean
+ character
+ string

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

what are the 4 arithmetic operations?

A

+ (addition)
- (subtraction)
* (multiplication)
/ (division)

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

a FOR loop is a…

A

counter controlled loop

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

when is a for loop used?

A

A FOR loop is used when the number of iterations needed is known ahead of execution

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