PAPER 1 EXAM WITH VERIFIED
ANSWERS
QUESTIONWhat is a pointer? - answer-A way of storing a memory address.
QUESTIONWhat is a record? - answer-A collection of related fields, each of which could hold a different
data type.
QUESTIONWhat is an array? - answer-A finite, indexed set of related elements of the same data type.
QUESTIONWhat is a user defined data type? - answer-A data type derived from existing data types in
order to create a customized data structure.
QUESTIONWhat is variable declaration? - answer-Creating a variable for the first time. giving it a name
and sometimes a data type.
QUESTIONWhat is constant decleration? - answer-Creating a constant for the first time.
QUESTIONWhat is assignment? - answer-giving a constant or a variable a value.
What is an integer? - answer-A positive or negative whole number
QUESTIONWhat is a Real or Float number? - answer-A positive or negative number that can have a
fractional part.
,QUESTIONWhat is a Boolean? - answer-True or False
QUESTIONWhat is a character? - answer-A single letter, number or symbol
QUESTIONWhat is a string? - answer-A group of characters
QUESTIONWhat is Date/Time? - answer-A way of storing Date/Time
QUESTIONwhat is iteration? - answer-repetition of a process e.g. a while or for loop. this could be definite
or indefinite.
QUESTIONWhat is selection? - answer-comparing values and then choosing an appropriate action. e.g. an
if statement.
QUESTIONwhat does the string handling function "Length" do? - answer-Returns the number of characters
in a specified string.
QUESTIONwhat does the string handling function "position" do? - answer-returns the position of a specified
character within a string.
QUESTIONwhat does the string handling function "concatenation" do? - answer-joins two or more strings
together to form a new and longer string.
QUESTIONIs a function required to return a value? - answer-yes
QUESTIONis a procedure required to return a value? - answer-no
, QUESTIONwhat can stack frames store for each subroutine? - answer-Return addresses
Parameters
Local variables
QUESTIONwhat is a recursive subroutine? - answer-a subroutine defined in terms of itself.
QUESTIONwhat two conditions must a recursive subroutine meet in order for the program to run correctly.
- answer-it must have a stopping condition/base case.
this stopping condition must be met at some point.
QUESTIONwhat type of error would occur if a base case in a recursive subroutine is never met. - answer-
Stack overflow error.
QUESTIONwhat is a data type? - answer-a particular kind of data item, as defined by the values it can
take, the programming language used, or the operations that can be performed on it.
QUESTIONwhy is it important to give meaningful identifier names? - answer-It allows a different
programmer to work out the purpose of a constant, variable or subroutine from its name.
QUESTIONwhat is a subroutine? - answer-A named block of code containing a set of instructions designed
to perform a frequently used operation.
QUESTIONWhat is definite iteration? - answer-the number of repititions is known before the loop starts.
QUESTIONWhat is indefinite iteration? - answer-the number of repititions is not known before the loop
starts.
QUESTIONWhat is a nested structure? - answer-One structure is placed within another. Easily identified by
indentation.