Chapter 8 Flashcards

1
Q

What is a Variable?

A

A named memory location that can store data. The data can change whilst a program is running

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

What is a Constants?

A

A named memory location that can store data. The data cannot change whilst a program is running

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

What is a identifier?

A

The name given to a variable, constant, data structure (e.g. array) or subroutine

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

What is a sequence?

A

A series of statements that are executed once, in the order they are written

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

State the two forms of selection.

A

IF STATEMENT
CASE STATEMENT

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

State the three iterations of loops. give loop name for each one.

A

Count - Controlled —- For loop
post - condition ——— While loop
pre - condition ———–Repeat untill Until loop

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

What is a Parameter?

A

It is a value that is sent to a subroutine

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

State the Difference between Procedures and functions.

A

Procedures do not return a value to the program that called it while Functions do return a value to the program that called it

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

Why use subroutines?

A

The subroutine can be called when needed

The subroutine can be passed data to use in comparisons or calculations

There is only one section of code to debug

There is only one section of code to update

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

What is Global Scope?

A

a variable or constant can be accessed from any part of the program

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

What is Local Scope?

A

a variable or constant can only be accessed in the subroutine it is declared within

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

What is a Maintainable program?

A

A program that contains key features to help it be understood at a later stage

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