A LEVEL AQA COMPUTER SCIENCE PAPER 2 EXAM
WITH ANSWERS| HIGHLY RATED A+
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.
WITH ANSWERS| HIGHLY RATED A+
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.