Computational Constructs Flashcards

1
Q

Parameter passing?

A

used to pass date from one subprogram to another; can either be passed by value (data will not change) or by reference (changes to the data will be made)

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

Variable scope?

A

where a variable can be used in a program; local ( only inside the subprogram in which the variable has been created) or global (can be used in any subprogram)

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

Subprograms?

A

named blocks of code which can be run from within another part of the program; often used to break a large program into smaller steps.

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

Functions?

A

a type of subprogram used to return a single value eg round, random

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

Procedures?

A

a type of subprogram that will follow a set of given instructions

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

Methods?

A

a function in an object orientated language that is defined inside a class

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