2.2 Programming Fundamentals Flashcards

1
Q

Sequence

A

structuring programs in a sequential order

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

Selection

A

programs branching depending on a condition

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

Counter-controlled iteration

A

repeating specific code, where the number of iterations are needed to be inputted

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

condition-controlled iteration

A

repeating specific code, where the number of iterations depend on a given condition

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

What is a variable

A

container storing data value that can change

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

What is a constant

A

value that doesn’t change while the program is running

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

What is assignment?

A

Giving a variable/constant a value

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

What is casting

A

converting from one data type to another

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

Why is casting needed

A

subproblems receive data in a format they are expecting

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

What is the similarity and difference between a function and procedure?

A

They both receive a parameter.
Function returns an output but a procedure doesn’t

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