What is a variable?
A named memory address that holds a value which usually changes as a program is running
A value that usually changes as a program is running
A named memory address that holds a value which does not usually change as a program is running
What is a constant?
A value that usually does not change as a program is running
A named value which cannot be changed while a program is running
What is an array?
A data structure that holds related data
A variable with more than one value
A variable with more than one data type
What is a subprogram?
A subprogram is a small program that is written within a larger, main program
A subprogram is a previous version of a program
Subprogram refers to a method of joining strings together
What are the three types of programming error?
Syntax errors, logic errors and runtime errors
Syntax errors, logic errors and validation errors
Logic errors, runtime errors and validation errors
What is the purpose of testing?
To ensure that a user becomes familiar with a program
To ensure that a program functions as intended
To ensure that the programmer has met all requirements
What are the three types of test data?
Normal, boundary and acceptable
Normal, boundary and erroneous
Normal, trace and erroneous
What is recorded in a trace table?
Changes to logic
Changes to syntax
Changes to variable values
Which search algorithm examines each data item in turn until a match is made or there are no more items to examine?
Linear search
Binary search
Standard search
With a data set of 0, 1, 3, 5, 7, 8, 9 how many values would a binary search examine before it found the value 8?
Six
Two
Five