Chapter 11 - Programming Flashcards

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

Constant

A

Named value that cannot change the execution of a program

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

Variable

A

Named value that can change the execution of a program

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

Function

A

Set of statements that can be grouped together and called in a program when required instead of repeating the statements each time. Returns a value

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

Procedure

A

Set of statements that can be grouped together and called in a program when required instead of repeating the statements each time. Does not return a value

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

Parameter

A

Variable applied to a procedure/function that allows one to pass in a value for the procedure to use

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

By value

A

Method of passing a parameter to a procedure in which the value of the variable cannot be changed by the procedure

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

By reference

A

Method of passing a parameter to a procedure in which the value of the variable can be changed by the procedure

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

Header

A

First statement in the definition of a procedure/function which contains its name, parameters, and if for a function, the type of return value

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

Argument

A

Value passed to a procedure/function

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