Paper 2 May 2024
Exam Questions with Answers
Baud Rate - Answer>>The maximum possible number of signal
changes that can occur in a wire per second.
Bit Rate - Answer>>The number of bits that can be sent down a
wire per second.
Integer - Answer>>A whole number that can be positive,
negative or zero.
Examples: -3, 0, 7, 2013588.
Natural (Number) - Answer>>A whole number that is either
positive or zero.
Examples: 0, 1, 2, 100, 67238.
Rational (Number) - Answer>>Any 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) - Answer>>Any number that cannot be
represented as a fraction.
Examples: square root of 2, PI.
,Real (Number) - Answer>>Any number that can either be
rational or irrational.
Boolean - Answer>>A value that is either true or false.
String - Answer>>A series of characters.
Array - Answer>>A variable that can store multiple values of the
same data type.
Example: Storing the high-scores of a game as integers.
Record - Answer>>A 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 - Answer>>A 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 - Answer>>A 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 - Answer>>This can be broken down into
procedures and functions.
,Procedure - Answer>>A block of code that performs a specific
task that does not return a value. Parameters can be passed into
it.
Function - Answer>>A block of code that performs a specific
task that returns a value. Parameters can be passed into it.
Selection - Answer>>This is when an if statement or select
case is used to, for example, check the value of a variable.
Iteration - Answer>>This is when, within the program, there is a
loop.
Definite Iteration - Answer>>The number of times that the
program will loop is already specified.
Example: For loop.
Indefinite Iteration - Answer>>The number of times the program
will loop is unknown.
Example: Do loop.
Nested (structures) - Answer>>This is when either iterative or
selective statements are put inside of each other.
Meaningful Identifiers - Answer>>Subroutines, variables and
objects should have sensible names.
Real Division - Answer>>Finds the value (usually as a decimal)
of one number divided by another.
, Integer Division - Answer>>Finds the integer part of one
number divided by another.
Integer Remainder - Answer>>Finds the remainder of one
number divided by another.
Truncation - Answer>>Chops the decimal part off a number.
Floor - Answer>>Rounds a number down to the nearest integer.
Ceiling - Answer>>Rounds a number up to the nearest integer.
AND - Answer>>Logical Operation:
Returns true only when both values are true.
OR - Answer>>Logical Operation:
Returns true as long as at least one of the values are true.
XOR - Answer>>Logical Operation:
Returns true only when exactly one of the two values is true and
not both.
NOT - Answer>>Logical Operation:
Returns true if the value is false and returns false if the value is
true.
Exception Handling - Answer>>When a try catch is used in the
program to deal with any errors that may occur.
ByVal - Answer>>When a variable is passed into a subroutine
as a copy so its value will not be changed.