Programming - terminology Flashcards

1
Q

What is the definition of declaration?

A

A statement of a variable name, data type and sometimes initial value - in most languages, must be done before the variable is used.

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

What is the definition of input?

A

Input is taking data into the program. For example, this could be a click of the mouse, selection of a value in a combo box or a value typed into a textbox.

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

What is the definition of output?

A

Output is data produced from the program. This could displayed on-screen or sent to a printer.

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

What is the definition of assignment?

A

Assignment is setting a variable to a value.

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

What is the definition of variables?

A

A variable is a value represented by a name. The value can be changed throughout the program. The scope of the variable is where it can be used in the program (local or global).

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

What is the definition of local variable?

A

A local variable is used in one sub-routine only.

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

What is the definition of global variable?

A

A global variable can be used anywhere in the program

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

What is the definition of constants?

A

A constant is like a variable but is not changed; it is always the same. e.g. pi

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

What is the definition of sub-routines?

A

A sub-routine is part of a program and allows the program to be broken into chunks.
A sub-routine can be called from th main program as many times as needed.

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