NEW
Font size
WorksheetsProgramming Basics
Total questions: 25
Worksheet time: 13mins
Which of the following best defines the term Abstraction?
A method of solving problems by removing unnecessary details.
A method of solving problems by breaking them down into smaller parts.
A method of planning a solution using recognised shapes, such as a diamond.
A method of planning a solution using a recognised format; declare variables, inputs, process and outputs.
Which of the following best defines the term Decomposition?
A method of solving problems by removing unnecessary details.
A method of solving problems by breaking them down into smaller parts.
A method of planning a solution using recognised shapes, such as a diamond.
A method of planning a solution using a recognised format; declare variables, inputs, process and outputs.
Which of the following best defines the term pseudocode?
A method of solving problems by removing unnecessary details.
A method of solving problems by breaking them down into smaller parts.
A method of planning a solution using recognised shapes, such as a diamond.
A method of planning a solution using a recognised format; declare variables, inputs, process and outputs.
Which of the following best defines the term flow diagram?
A method of solving problems by removing unnecessary details.
A method of solving problems by breaking them down into smaller parts.
A method of planning a solution using recognised shapes, such as a diamond.
A method of planning a solution using a recognised format; declare variables, inputs, process and outputs.
What does the term "Algorithmic Thinking" mean?
Applying logic to solve a problem. This could be presented as either a flow diagram or pseudocode.
Writing the different steps to solve a problem. This could be either on paper or in a program.
Using an if statement to determine what happens next within a program.
Using either a for loop or a while loop to repeat a section of code within a program.
What does the term "Sequence" mean?
Applying logic to solve a problem. This could be presented as either a flow diagram or pseudocode.
Writing the different steps to solve a problem. This could be either on paper or in a program.
Using an if statement to determine what happens next within a program.
Using either a for loop or a while loop to repeat a section of code within a program.
What does the term "Selection" mean?
Applying logic to solve a problem. This could be presented as either a flow diagram or pseudocode.
Writing the different steps to solve a problem. This could be either on paper or in a program.
Using an if statement to determine what happens next within a program.
Using either a for loop or a while loop to repeat a section of code within a program.
What does the term "Iteration" mean?
Applying logic to solve a problem. This could be presented as either a flow diagram or pseudocode.
Writing the different steps to solve a problem. This could be either on paper or in a program.
Using an if statement to determine what happens next within a program.
Using either a for loop or a while loop to repeat a section of code within a program.
Which of the following is NOT a data type?
alphanumeric
string
integer
float
Which of the following is the correct data type for a whole number?
character (char)
string
integer (int)
float
Which of the following is the correct data type for a decimal number?
character (char)
string
integer (int)
float
Which of the following is the correct data type for a single character?
character (char)
string
integer (int)
float
What does BOOLEAN mean?
It is a True/False data type.
It is an alphanumeric data type.
It is an example of iteration.
It is an example of sequence.
What is the best data type for a variable "Telephone Number"
string
character
integer
float
What is the best data type for a variable "StudentName"
string
character
integer
float
What is a variable?
A fixed value within a program, such as VATrate.
A named memory location that can change throughout a program, such as TotalPrice.
A variable that can be called at any time within a program.
A variable that can only be called within a loop or sub-program.
What is a constant?
A fixed value within a program, such as VATrate.
A named memory location that can change throughout a program, such as TotalPrice.
A variable that can be called at any time within a program.
A variable that can only be called within a loop or sub-program.
Which of the following is NOT an arithmetic operation?
+
/
<=
*
Which of the following is NOT a comparison (logical) operation?
>
/
<=
==
What is the purpose of DIV?
Integer division
Multiplication
Modulus
Exponentiation
What is the purpose of MOD?
Integer division
Multiplication
Modulus
Exponentiation
What is the purpose of ^ (or **)?
Integer division
Multiplication
Modulus
Exponentiation
What is the output of this flow diagram if the input is 11?
11
15
High Number
Low Number
What is the output of this flow diagram if the input is 22?
22
15
High Number
Low Number
What is the output of the following pseudocode when the input is 3?
declare variables: number = int (0)
cube = int (0)
Input: number ("Please input a number: ")
Process: cube = number^3
Output: print (cube)
0
3
9
27
