• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 6 pages
Exam (elaborations)

Ocr A Level Computer Science H441

Document preview thumbnail
Preview 2 out of 6 pages

OCR A LEVEL COMPUTER SCIENCE H441

Content preview

OCR A LEVEL COMPUTER SCIENCE
H446/02 ALGORITHMS CERTIFICATION
EVALUATION TEST PAPER 2026
COMPLETE QUESTIONS AND SOLUTIONS
GRADED A+

●● Describe how a leaf node is deleted from a binary search tree. [2].
Answer: • Traverse tree until the required node is found
• Set the parent node pointer to the leaf node to null
• Add the deleted node to the free storage list


●● Describe how a binary tree can be searched for a value. [4]. Answer:
• Check if the root node is equal to search value and if so...
• ... return
• If value is less than root node take left subtree
• If value is greater than root node take right subtree
• Repeat process with the subtree...
• ... until search value is found
• ... until no more branches can be travelled


●● Explain how backtracking is used in depth-first (post-order)
traversals. [2]. Answer: • When a leaf node is reached...

, • ... the traversal backtracks to the leaf's parent node
• ... backtracks to the last node with unvisited children


●● Describe how a new item is added to a linked list. [4]. Answer: •
Check space available in the free list
• Add new data item to first free space in free list
• Append
• Prepend


●● Give two reasons why reusable program components are used in
programs. [2]. Answer: • One piece of code can be used many times
• No need to write the same code multiple times
• Takes less time to code the program
• Easier error detection as fix once and it corrects in each place
• Makes it easier to maintain the program


●● Describe the key features of a recursive algorithm. [3]. Answer: •
The function calls itself
• Each recursive call will create a new copy of the values in the
function...
• ... and add all of the values of the copy the call is being made from to a
stack
• There is a base case

Document information

Uploaded on
May 17, 2026
Number of pages
6
Written in
2025/2026
Type
Exam (elaborations)
Contains
Questions & answers
$12.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Sold
36
Followers
2
Items
14285
Last sold
2 weeks ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions