# Y9: Algorithms

## Quiz by Teran Subasinghe

GCSE (OCR)
Computer Science (9-1), J277
English National Curriculum

### Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

20 questions
• Q1
Which of the following best describes pseudocode?
A low-level programming language used for direct hardware manipulation.
A notational system for algorithms that mimics a real programming language without being constrained by any specific syntax.
A specific programming language used for rapid software development.
A graphical representation of the step-by-step execution of an algorithm.
30s
2.1.2c
• Q2
In a flowchart, what does a diamond shape represent?
A process or an action to be executed.
A decision point where the flow can branch based on a condition.
Data input or output.
The start or end point of the algorithm.
30s
2.1.2c
• Q3
Which high-level programming construct is used to repeat a block of code multiple times?
Function
Class
Array
Loop
30s
2.1.2c
• Q4
What does a flowchart's rectangular box typically represent?
Data input or output.
A process or operation to be performed.
The start or end of the algorithm.
A decision to be made based on a condition.
30s
2.1.2c
• Q5
Which of these is NOT a feature of high-level programming languages?
Abstraction from hardware details
Direct manipulation of hardware
Use of natural language elements
Support for object-oriented programming
30s
2.1.2c
• Q6
What is the main purpose of using pseudocode?
To compile code into machine language.
To debug actual codes in a high-level programming language.
To create graphical representations of algorithms.
To outline an algorithm in a language-agnostic format.
30s
2.1.2c
• Q7
What is the function of a flowchart?
To generate the final code for an algorithm.
To directly execute algorithms without coding.
To visually represent the steps of an algorithm.
To evaluate the complexity of an algorithm.
30s
2.1.2c
• Q8
Which statement best describes the role of a compiler in software development?
It checks for syntax errors in the code without executing it.
It enhances the performance of high-level code by optimizing it for runtime execution without translation.
It executes high-level code line by line and displays output immediately.
It translates high-level code into machine code that the computer can execute.
30s
2.1.2c
• Q9
Which of the following best describes the function of a loop in programming?
To define a new data type.
To check whether a condition is true or false once.
To store a collection of values under a single name.
To execute a block of code multiple times based on a condition.
30s
2.1.2c
• Q10
In the context of algorithms and programming, what does the term 'refactoring' refer to?
The initial writing of the code for an algorithm.
The debugging of code to identify and remove errors.
The act of compiling code into an executable program.
The process of restructuring existing code without changing its external behavior.
30s
2.1.2c
• Q11
In a temperature conversion application, what is the process?
Entering the temperature to be converted
Choosing the type of temperature scale to convert from
Displaying the converted temperature
Applying the formula to convert temperatures
30s
2.1.2a
• Q12
In an online shopping system, what is considered an output?
The confirmation email sent to the customer
Calculating the total price including tax
The customer's selection of items to purchase
Storing customer payment information securely
30s
2.1.2a
• Q13
In a basic calculator program, what is the input?
The numbers and operation to be performed
The result of the calculation
Displaying the calculation on the screen
Storing the result in memory for future calculations
30s
2.1.2a
• Q14
In a simple online quiz system, what represents the process step?
Selecting the answers to each question
Checking the answers against the correct ones