Programming terminology Flashcards

1
Q

What kind of development methodology does modular programming follow?

A

A top-down design with stepwise refinement (with the use of sub programs).

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

What is a subprogram?

A

A section of code which is self-contained but is designed to be used with other subprograms.

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

What does a procedure do?

A

It produces an effect!

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

What does defining a procedure involve?

A

You have to give it a name and state what data will be passe through it.

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

What is a function? (IMPORTANT)

A

It is like a procedure but it only returns one value. Examples include SQR, RND and COS.

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

What is a variable?

A

A variable is a name given by the programmer to identify storage locations.

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

Describe a global variable

A

They can be accessed by any location in the program, and is used for data that needs to be shared between the procedures.

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

Describe a local variable

A

They are defined for use within one procedure.The data that they contain is lost when the procedure is complete. This avoids conflict with similar variable names.

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

What is the scope of a variable?

A

It is the range of statements for which a variable is valid.

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