Paper 1 Exam Questions and answers
What type of language is Pascal? This type of language helps to
reduce run time errors by forcing declaration of variables & data
types, & captialisation. - Answer>>Strongly Typed
An item of data whose value DOESN'T change -
Answer>>Constant
An item of data whose value COULD change, while being run -
Answer>>Variable
A sequence of steps that can be followed to complete a task in a
finite number of steps, always terminates. - Answer>>Algorithm
A single value within an array (list) - Answer>>Element
One line of a text file - Answer>>Record
Principle of choosing what action to take, based on certain criteria
(conditions) - IF & CASE STATEMENTS - Answer>>Selection
Placing one set of instructions inside another set of instructions -
Answer>>Nesting
Principle of repeating processes - FOR, WHILE, REPEAT UNTIL
- Answer>>Iteration
Process that repeats a set number of times - FOR LOOP -
Answer>>Definite iteration
Process that repeats until a certain criteria is met - WHILE -
Answer>>Indefinite Iteration
, Principle of putting the correct instructions in the right order within
a program - Answer>>Sequence
Process of cutting off a number after a certain number of
characters or d.p - Answer>>Truncating
A unique binary representation of a particular letter, number etc. -
Answer>>Character Code
A named block of code designed to carry out a specific task -
Answer>>Subroutine
More readable code
Allows code to be reused
Allows overloading (changing function based on parameters
passed in) - Answer>>Advantages of subroutines
A subroutine which does not return a value to the main program -
Answer>>Procedure
A variable that is available only in specified subroutines and
functions - Answer>>Local Variable
Cant inadvertley change value being stored somewhere else;
Use same variable name in different sections;
Free up memory as when a local variable is finished with it is
cleared from memory. - Answer>>Advantage of local variables
Variable that is available anywhere in program -
Answer>>Global Variable
A subroutine that returns a value to the main program -
Answer>>Function