WorksheetsAlgorithms and Data Revision
Total questions: 20
Worksheet time: 14mins
What is the name of a variable passed to a function?
Global
Parameter
Constant
Float
What would the following code allow you to find out in a program?
num = 12325
if num MOD 2 == 0:
Reverse the number from positive to negative
Loop the number around if it is bigger than 0
Find out if the number is odd or even
Divide the number to find how many whole instances of a number will go into it
What kind of search algorithm would be best to use on the following data set?
5,8,32,45,1,3,54,23,45,10,23,54,67
Bubble Search
Linear Search
Insertion Search
Binary Search
Is NOT a data type used in programming:
Float
Boolean
String
Tuple
A data structure is....
A collection of multiple data items accessible under a single identifier
A collection of different identifiers that look at a single piece of data
An identifier that allows access to a single piece of data
A boolean value that allows access to both single and multiple sets of data
Is NOT a piece of meta data that would be stored by an image:
Bit depth
Resolution
Compression
DPI
When turning written code like Python into a running program, an to allow you to identify errors you would use...
An interpreter
A compiler
Machine Code
A highlighter
Is the programming construct that allows the flow of data in a program to be manipulated by logical conditions:
Iteration
Sequence
Variable
Selection
Before sound is made available to be processed in a computer, the signal is:
variable
analogue
binary
digital
If an image had an 8-bit colour depth, it would mean it has:
512 colours available
a digital signal
65,356 colours available
256 colours available
Convert 1100 1110 from binary into denary...
198
223
206
243
Convert E3 from hexadecimal into denary:
144
56
223
227
Convert denary 193 into hexadecimal:
D3
C1
111
DD
I would use a (a) to convert high level code into a program that would run all in one go
Which TWO of these statements refer to abstraction?
The removal of unnecessary information from a problem
The selection of important and relevant information from a problem
Breaking a problem down into smaller, sub-problems
Allowing reusable components to be available
You need to ensure that a persons score out of 100 can be input into a program so you make the variable an integer. This is known as:
Algebraic direction
Concatentation
Casting
Data typing
Which THREE of these would be methods of input validation
Type check
Length check
Testing
Range check
What is this kind of loop known as:
For x = 0 to 20
Conditional Controlled
Constant Controlled
Variable Controlled
Counter Controlled
Which of these symbols would be used to make a decision about data flow?
The paralellogram
The oval
The diamond
The rectangle
Which of these symbols would allow you to call a sub-routine into a main program?
The diamond
The rectangle
The paralellogram
The oval
