
2.3.1. Algorithms exam questions
Authored by Ian Currie
Other
12th Grade
binary search covered
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
19 questions
Show all answers
1.
OPEN ENDED QUESTION
3 mins • 2 pts
Describe the purpose of this algorithm.(2)
Evaluate responses using AI:
OFF
Answer explanation
Answer:
To locate an item (1) in a list (1). The list is in some order (1).
Tags
binary search
Algorithms
2.
OPEN ENDED QUESTION
3 mins • 8 pts
Parameters are passed to this function. Complete the following table to identify these parameters and the purpose of each. (8)
Evaluate responses using AI:
OFF
Answer explanation
Answer:
A (1 AO – 1.2) the list to be searched (1 – AO 2.1).
Value (1 – AO 1.2) the item being searched for (1 – AO 2.1).
Low (1 AO – 1.2) the lower end of the list / sublist (1 – AO 2.1).
High (1 AO – 1.2) the upper end of the list / sublist (1 – AO 2.1).
Tags
binary search
Algorithms
3.
OPEN ENDED QUESTION
3 mins • 2 pts
Describe what is meant by recursion. (2)
Evaluate responses using AI:
OFF
Answer explanation
The function calls itself (1) from within the function.
The function calls itself (1) from within the function.
Tags
binary search
Algorithms
4.
OPEN ENDED QUESTION
3 mins • 3 pts
Explain how the algorithm in Fig.2 is an example of a divide and conquer approach. (3)
Evaluate responses using AI:
OFF
Answer explanation
Answer:
Divide and conquer splits a big problem into smaller parts (1). This algorithm repeatedly splits the list (1) in half (1) which reduces the amount of searching (1).
Answer:
Divide and conquer splits a big problem into smaller parts (1). This algorithm repeatedly splits the list (1) in half (1) which reduces the amount of searching (1).
Tags
binary search
Algorithms
divide and conquer
5.
OPEN ENDED QUESTION
3 mins • 8 pts
Rewrite the algorithm in Fig.2 without using recursion. Annotate your pseudocode with comments to show how it solves the problem. (8)
Evaluate responses using AI:
OFF
Answer explanation
Answer: Individual steps in pseudocode:
Function declaration
Parameters all given correctly
Found flag used
Mid-point found
Check if value found is greater than looked for value
Check if value found is less than mid value
Mid-point adjusted
Programming marks to be awarded as follows:
Function declaration with parameters all given correctly (1 – AO 3.2)
Found flag and midpoint (1 – AO 3.2)
Checks if value found is greater or less than looked for value (1 – AO 3.2)
Mid-point adjusted within a loop (1 – AO 3.2)
Possible annotated comments:
An If is used to catch an unordered list (1 – AO 2.2).
A WHILE loop deals with the logic that tests the binary search conditions without needing to use recursion (1 – AO 2.2) by reiterating through the conditions (1 – AO 2.2).
A found flag is used as the exit condition of the loop so that when the number is found the loop ends (1 – AO 2.2).
Accept other valid annotations.
Answer: Individual steps in pseudocode:
Function declaration
Parameters all given correctly
Found flag used
Mid-point found
Check if value found is greater than looked for value
Check if value found is less than mid value
Mid-point adjusted
Programming marks to be awarded as follows:
Function declaration with parameters all given correctly (1 – AO 3.2)
Found flag and midpoint (1 – AO 3.2)
Checks if value found is greater or less than looked for value (1 – AO 3.2)
Mid-point adjusted within a loop (1 – AO 3.2)
Possible annotated comments:
An If is used to catch an unordered list (1 – AO 2.2).
A WHILE loop deals with the logic that tests the binary search conditions without needing to use recursion (1 – AO 2.2) by reiterating through the conditions (1 – AO 2.2).
A found flag is used as the exit condition of the loop so that when the number is found the loop ends (1 – AO 2.2).
Accept other valid annotations.
Tags
binary search
Algorithms
re-writing algorithm
6.
OPEN ENDED QUESTION
3 mins • 4 pts
Explain two reasons why they might use the new flight path in the simulation before implementing it in the real world. (4)
Evaluate responses using AI:
OFF
Answer explanation
Answer: 1 mark per bullet
e.g.
It is safer… (1)
…Real planes / lives are not put at risk by testing it in reality (1)
Time can be sped up / decreased … (1)
… do not need to wait to see what happens, can view changes immediately (1)
It will cost less… (1)
…Can make multiple changes / test all possibilities (1)
Tags
performance modelling
7.
OPEN ENDED QUESTION
3 mins • 2 pts
The board shown in Fig 2.1 is a visualisation of the problem. Explain what visualisation means in this example. (2)
Evaluate responses using AI:
OFF
Answer explanation
Answer: 2 marks, 1 for defining visualisation, 1 for application to the 2-d array and gridd
Presents data in an easy-to-grasp way (1)
An array is not actually a grid / table (1)
Tags
Visualisation
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
16 questions
Youtubers And Games Quiz
Quiz
•
1st Grade - Professio...
14 questions
Vet nursing so far...
Quiz
•
12th Grade
18 questions
Debt Vocabulary
Quiz
•
10th - 12th Grade
16 questions
Super easy quiz
Quiz
•
1st Grade - Professio...
15 questions
The Ultimate Avengers Quiz!
Quiz
•
10th - 12th Grade
15 questions
Computer System Servicing: Occupational Health and Safety
Quiz
•
10th Grade - University
20 questions
Disney!
Quiz
•
KG - Professional Dev...
19 questions
Psychology Vocab 2
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Other
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
25 questions
Logos
Quiz
•
12th Grade
20 questions
Grammar
Quiz
•
9th - 12th Grade
18 questions
Mendelian Genetics
Quiz
•
10th - 12th Grade
22 questions
Regular Preterite -AR-ER-IR-
Quiz
•
12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade