PAPER 2 QUESTION PAPER+ ANSWERS
Baud Rate - answersThe maximum possible number of signal changes that can occur in
a wire per second.
Bit Rate - answersThe number of bits that can be sent down a wire per second.
Integer - answersA whole number that can be positive, negative or zero.
Examples: -3, 0, 7, 2013588.
Natural (Number) - answersA whole number that is either positive or zero.
Examples: 0, 1, 2, 100, 67238.
Rational (Number) - answersAny number that can be represented as the fraction 'a/b'
where 'a' and 'b' are both integers.
Examples: -0.2, 4/5, 1, 1/3.
Irrational (Number) - answersAny number that cannot be represented as a fraction.
Examples: square root of 2, PI.
Real (Number) - answersAny number that can either be rational or irrational.
Boolean - answersA value that is either true or false.
String - answersA series of characters.
Array - answersA variable that can store multiple values of the same data type.
Example: Storing the high-scores of a game as integers.
Record - answersA variable that can store multiple values that can have different data
types.
Example: Storing data about a book; a string for the title, an integer for the number of
pages, etc.
Variable - answersA metaphor for it is that is a box that can store a specific type of item
(the data type) and has a name assigned to it (the identifier). Its value can be changed
during run-time of the program.
Constant - answersA metaphor for it is that is a box that can store a specific type of item
(the data type) and has a name assigned to it (the identifier). Its value cannot be
changed during run-time of the program.
Subroutine - answersThis can be broken down into procedures and functions.
Procedure - answersA block of code that performs a specific task that does not return a
value. Parameters can be passed into it.
Function - answersA block of code that performs a specific task that returns a value.
Parameters can be passed into it.
Selection - answersThis is when an if statement or select case is used to, for example,
check the value of a variable.
Iteration - answersThis is when, within the program, there is a loop.
, Definite Iteration - answersThe number of times that the program will loop is already
specified.
Example: For loop.
Indefinite Iteration - answersThe number of times the program will loop is unknown.
Example: Do loop.
Nested (structures) - answersThis is when either iterative or selective statements are
put inside of each other.
Meaningful Identifiers - answersSubroutines, variables and objects should have
sensible names.
Real Division - answersFinds the value (usually as a decimal) of one number divided by
another.
Integer Division - answersFinds the integer part of one number divided by another.
Integer Remainder - answersFinds the remainder of one number divided by another.
Truncation - answersChops the decimal part off a number.
Floor - answersRounds a number down to the nearest integer.
Ceiling - answersRounds a number up to the nearest integer.
AND - answersLogical Operation:
Returns true only when both values are true.
OR - answersLogical Operation:
Returns true as long as at least one of the values are true.
XOR - answersLogical Operation:
Returns true only when exactly one of the two values is true and not both.
NOT - answersLogical Operation:
Returns true if the value is false and returns false if the value is true.
Exception Handling - answersWhen a try catch is used in the program to deal with any
errors that may occur.
ByVal - answersWhen a variable is passed into a subroutine as a copy so its value will
not be changed.
ByRef - answersWhen a variable is passed into a subroutine as a reference so its value
can be changed.
Local (Variable) - answersA variable that is defined, for example, within a subroutine
and cannot be viewed or modified from outside of the block of code is was declared in.
Global (Variable) - answersA variable that is declared, usually at the start of the
program, and can be accessed and modified from anywhere at all in the program.
Recursion - answersA subroutine's definition contains a self-call meaning a function or
procedure calls itself as a way of performing iteration.
Object-Oriented (Programming) - answersA type of programming paradigm when
multiple objects are created and handled to run the program.
Example: In a game you might have an object for the player and then multiple objects
for the enemies.
Procedural (Programming) - answersA type of programming paradigm when you break
down a project, usually using a decomposition diagram, into individual tasks which can
each be performed by a procedure.