WorksheetsAlgorithms and Programming
Total questions: 26
Worksheet time: 20mins
Which description best describes a syntax error?
This type of error will produce an unexpected output but won’t stop the program running.
This is a type of error that breaks the rules of the programming language and will not allow the program to run.
The process of removing unnecessary details and including only the relevant details.
This type of error will cause the program to crash while it’s running because of an illegal error.
What is a variable?
A text-based alternative to representing algorithms and is simplified form of programming code.
The process of breaking a complex problem down into smaller, more manageable parts.
A value that does not change while the program is running and is assigned when the program is designed.
A named memory location that holds data that can be changed.
Which description best matches the programming construct sequence?
The process of following different pathways based upon a condition.
This is the repetition of programming code a set number of times or until a certain result has been achieved.
A value that does not change while the program is running and is assigned when the program is designed.
The process of executing one instruction after another in order.
Which description best matches the programming construct iteration?
A graphical method for representing the steps in an algorithm using a combination of symbols.
The process of following different pathways based upon a condition.
This is the repetition of programming code a set number of times or until a certain result has been achieved.
The process of executing one instruction after another in order.
What is abstraction?
The process of breaking a complex problem down into smaller, more manageable parts.
A value that does not change while the program is running and is assigned when the program is designed.
The process of removing unnecessary details and including only the relevant details.
A named memory location that holds data that can be changed.
Which of these statements is describing pseudo code?
Altering the behaviour of a variable from one data type to another (e.g. integer to a string).
A text-based alternative to representing algorithms and is a simplified form of programming code.
A graphical method for representing the steps in an algorithm using a combination of symbols.
The process of breaking a complex problem down into smaller, more manageable parts.
Which description best matches the data type integer?
A single alphanumeric character.
A whole number, positive or negative and is only used for data that requires calculations.
A sequence of characters used for all data that is not involved in calculations.
Used to store a True or False statement within a variable.
Which description best matches the data type string?
A single alphanumeric character.
A whole number, positive or negative and is only used for data that requires calculations.
A sequence of characters used for all data that is not involved in calculations.
Used to store a True or False statement within a variable.
Which description best matches the data type boolean?
A single alphanumeric character.
A whole number, positive or negative and is only used for data that requires calculations.
A sequence of characters used for all data that is not involved in calculations.
Used to store a True or False statement within a variable.
What is casting?
A value that does not change while the program is running and is assigned when the program is designed.
This is the repetition of programming code a set number of times or until a certain result has been achieved.
Altering the behaviour of a variable from one data type to another (e.g. integer to a string).
Understandable by humans but must be compiled before being understood by the computer.
Which of these statements is describing a flowchart?
Altering the behaviour of a variable from one data type to another (e.g. integer to a string).
A text-based alternative to representing algorithms and is a simplified form of programming code.
A graphical method for representing the steps in an algorithm using a combination of symbols.
The process of breaking a complex problem down into smaller, more manageable parts.
What is a constant?
A text-based alternative to representing algorithms and is simplified form of programming code.
The process of breaking a complex problem down into smaller, more manageable parts.
A value that does not change while the program is running and is assigned when the program is designed.
A named memory location that holds data that can be changed.
Which description best describes a logical error?
This type of error will produce an unexpected output but won’t stop the program running.
This is a type of error that breaks the rules of the programming language and will not allow the program to run.
The process of removing unnecessary details and including only the relevant details.
This type of error will cause the program to crash while it’s running because of an illegal error.
Which description best matches the data type char?
A single alphanumeric character.
A whole number, positive or negative and is only used for data that requires calculations.
A sequence of characters used for all data that is not involved in calculations.
Used to store a True or False statement within a variable.
What is an array?
The process of executing one instruction after another in order.
It can be thought of as a variable that can contain more than one data item (e.g. a list of names).
A graphical method for representing the steps in an algorithm using a combination of symbols.
A named memory location that holds data that can be changed.
What is a two-dimensional array?
A sequence of characters used for all data that is not involved in calculations.
A named memory location that holds data that can be changed.
It’s similar to a table with two sets of indexes (one for the rows and another for the columns).
A value that does not change while the program is running and is assigned when the program is designed.
Which description best matches the programming construct selection?
A graphical method for representing the steps in an algorithm using a combination of symbols.
The process of following different pathways based upon a condition.
This is the repetition of programming code a set number of times or until a certain result has been achieved.
The process of executing one instruction after another in order.
Which description best matches string manipulation?
A single alphanumeric character.
The act of manipulating, extracting or changing the characters in a sequence.
A value that does not change while the program is running and is assigned when the program is designed.
A sequence of characters used for all data that is not involved in calculations.
If you want to add a comment to your python code which symbol would you use?
&
%
#
/
Which statement best matches a bubble sort?
Compares each item with the next one and swaps them if they are out of order.
Starting from the beginning of a data set, each item is checked in turn to see if it is the one being searched for.
Creates two or more identical sub-problems from the largest problem and solves them individually.
Calculate a mid-point in the data set and check if that is the item to be found.
Which statement best matches a merge sort?
Compares each item with the next one and swaps them if they are out of order.
Starting from the beginning of a data set, each item is checked in turn to see if it is the one being searched for.
Creates two or more identical sub-problems from the largest problem and solves them individually.
Calculate a mid-point in the data set and check if that is the item to be found.
Which statement best matches a linear sort?
Compares each item with the next one and swaps them if they are out of order.
Starting from the beginning of a data set, each item is checked in turn to see if it is the one being searched for.
Creates two or more identical sub-problems from the largest problem and solves them individually.
Calculate a mid-point in the data set and check if that is the item to be found.
What is a high-level language?
Understandable by humans but must be compiled before being understood by the computer.
Used to store a True or False statement within a variable.
Altering the behaviour of a variable from one data type to another (e.g. integer to a string).
This is the repetition of programming code a set number of times or until a certain result has been achieved.
What is validation?
Used to store a True or False statement within a variable.
Checking data input by the user meets specific criteria/rules before processing.
The process of executing one instruction after another in order.
This type of error will produce an unexpected output but won’t stop the program from running.
What name is given to this symbol in a flowchart?
Decision
Terminal (Start/Stop)
Process
Output
What name is given to this symbol in a flowchart?
Decision
Terminal (Start/Stop)
Process
Output
