F452 Define Flashcards

1
Q

Define what a serial file means.

A

The data is stored chronologically/in the order in which it is entered
New data always appended / added to the end of the file
You need to read each preceding item to reach an item you are searching for

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

Define what is meant by a random file

A

The address of each record is calculated from the key using a hash algorithm. The records may be contiguous.

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

Define what is meant by a function

A

A subroutine …
… which can return a single value
So it can be used within expressions (as a variable)

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

Define what is meant by a recursion.

A

When a function/procedure/subroutine calls itself

It has a stopping condition to tell it the recursion when to stop

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

Define what is meant by a sequence.

A

all instructions are executed…
… once
… in the order in which they appear

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

Define what is meant by selection.

A

a condition is used
to determine which of the statements (if any) will be executed
as a result some instructions may not be executed

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

Define what is meant by iteration.

A

a group of instructions is repeated
for a set number of times …
… or until a condition is met

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

Define what is meant by a validation.

A

Input data is checked by the computer
… against a set of rules
…to ensure that it is reasonable/sensible

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

Define what is meant by an array.

A

A data structure / set of data items
Of the same data type
Grouped under one identifier
Each item can be addressed using its index/subscript.

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

Define what is meant by a variable.

A

An identifier/name
Associated with a particular memory location.
Used to store (and manipulate) data
…which can be changed while the program is running.

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

Define what is meant by a constant.

A

When a constant is declared it must be given a value.

The value cannot be changed while the program is running.

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

Define what is meant by a parameter.

A

(A variable) which holds an item of data…
… which is supplied/passed to a subroutine/procedure/function
It is given an identifier when the subroutine is defined
It is substituted by an actual

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

Define what is meant by a local variable

A

A local variable is declared within a subprogram/ procedure/function/block of code
… and is only available within that section of code
… and is destroyed/deleted when the subprogram exits
A local variable can override a global variable (with the same name)

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

Define what is meant by a global variable.

A

A global variable is declared at the beginning of a program

… and is available throughout the program

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

Define what is meant by beta-testing.

A

In beta-testing…
… the nearly complete program…
… is given to a group of users to test/is tested under normal operating conditions/tested by people who were not involved in the production
The aim is to find any bugs which the programmer has overlooked

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

Define what is meant by acceptance-testing.

A

… the program is considered complete
The programmer demonstrates the working program to the client
The aim is to show that the program meets all the requirements of the client.

17
Q

Define what is meant by black box testing.

A

Different possible inputs are tested…
… to see if they produce the expected output
How the program works is not considered

18
Q

Define what is meant by statement

A

A single instruction …
… which can be executed
suitable example
Some statements can contain others (eg IF, WHILE)

19
Q

Define what is meant by white-box testing.

A

In white box testing the actual steps of the algorithm are tested to make sure all parts work as intended. You need to test all possible paths through the algorithm.

20
Q

Define what is meant by nesting.

A

Placing a construct within another construct and they are not allowed to overlap.

21
Q

Define what is meant by procedure.

A

A subroutine/subprogram / Section of code which is given an
identifier
It can be called from the main program / from another
procedure
When called the code in the procedure is executed
And then control is passed back to where the procedure is
called from

22
Q

Define what is meant by a keyword violation error

A

Words which are already used for a purpose within the
Language
A reserved word/ cannot be used as an identifier (for a
variable, subroutine etc…)

23
Q

Define what is meant by a syntax error

A

It breaks the rules of the language

24
Q

Define what is meant by a run time error

A

A statement in a code that cannot be executed due to effects not catered for by the program. It is detected when the program crashes.

25
Q

Define what is meant by a logic error

A

Code can be compiled or executed/follows the rules of the language but does not perform the intended action. E.g. using wrong mathematical operation

26
Q

Define what is meant by an indexed sequential file.

A

Records are arranged in order of a primary key. An indexed is kept which is used to jump to groups or blocks of records. e.g. red colour for first 5 records, yellow for next 5 etc. the index must be in the same order as the records

27
Q

Define what is meant by a recursive algorithm

A

An algorithm which calls itself with smaller input values. Which obtains the results for the current input by applying simple operations to the returned value for the smaller input.

28
Q

Define what is meant by a alpha testing

A

Testing is carried out by the programmers/software company playing the role of the user during development to find bugs in the program,.

29
Q

Define what is meant by a identifier

A

A name given to a variable or a sub-routine.

30
Q

Define what is meant by initialisation

A

Setting starting values of a variable before the variable is used in an expression.

31
Q

Define what is meant by an integer

A

A whole number.

32
Q

Define what is meant by operator precedence.

A

A default order in which operations in an expression are carried out.

33
Q

Define what is meant by a 2-dimensional array.

A

A collection of data items of the same data type under one identifier. Uses 2 index numbers and can be represented as a grid with rows and columns.

34
Q

Define what is meant by stepwise refinement.

A

The overall problem is defined in a simple terms and then split into a number of smaller tasks. Each of these tasks is successively split and refined until they are small enough to be understood and programmed.

35
Q

Define what is meant by a top-down design.

A

Where the tasks that the program needs to perform are split into smaller sub-tasks.

36
Q

Define what is meant by installation

A

When the program and files are copied/downloaded onto the device of where the program will be used.

37
Q

Define what is meant by scope of a variable

A

The part of the program where a variable is available e.g. local or global. Global variable available throughout program. Local variable only applies to a sub-routine. If Global and Local use the same identifier/name then local variable takes precedence.