

Computational Thinking Algorithms and Programming
Presentation
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
J Bangura
Used 17+ times
FREE Resource
2 Slides • 13 Questions
1
Computational Thinking Algorithms and Programming

2
Open Ended
A program needs to store the names of plants that are in a garden, so they can be easily found and accessed in alphabetical order . State the type of tree shown.
3
Open Ended
A program needs to store the names of plants that are in a garden, so they can be easily found and accessed in alphabetical order . Show the output of a breadth-first traversal of the tree shown
4
Binary Tree/Binary Search Tree
show the output of a breadth-first traversal of the three shown (review the image in detail and select from the options on the next slide)
5
Multiple Select
Show the output of a breadth-first traversal of the tree shown.(Click on the image to enlarge)
1st layer Lily
2nd Layer Daisy, Sunflower,
3rd Layer Begonia, Hosta, Peony
4th Layer Rose
1st layer Lily
2nd Layer Daisy, Begonia,
3rd Layer Sunflower, Hosta, Peony
4th Layer Rose
6
Open Ended
Explain how backtracking is used in depth first (post-order) traversal. Use the tree in fig.2.1 (click the image to enlarge)
7
Fill in the Blanks
The element in the tree Fig 2.1 are read into a linked list producing an alphabetised list. Complete the following table to show the linked list for the data
Type answer...
8
Fill in the Blanks
A new plant, Lavender, needs adding to the linked list. The linked list needs to retain its alphabetical order. Complete the table to show the linked list after Lavender is added e.g. (Complete the NextPointer column)
Type answer...
9
Multiple Select
identify the type of branching statements used in the function
if
While
For
10
Multiple Select
Identify the parameters in the function displayed
num1
function
num2
11
Multiple Select
Explain the difference between branching and iteration. (there are 3 possible options)
Branching decides which code is run
parameters are declared
only runs code once
Iteration repeatedly runs the same code in the same sequence
12
Multiple Select
State weather the parameters should be passed by value or by reference. (select 3 options explaining the operators function and a example)
By Value .. the original value do not need to be modified
parameters are declared
byRef would not work
would cause the routine to crash
13
Multiple Select
Describe the arithmetic operation of MOD. Use an example in your answer (select 3 options explaining the operators function and a example)
Divides multiple elements
9 MOD 3 = 3
10 MOD 3 = 1
Give the remainder after division
14
Multiple Select
Trace the recursive function when it is called by the statement GCD(250, 20).
Give the final value returned (select 3 options explaining and giving the final result returned)
Num2 != 0 therefore return GCD(20,10)
Num2 != 0 therefore return GCD(10,0)
Final return value = 10
Final return value = 0
Num2 != 0 therefore return GCD(12,5)
15
Open Ended
The function has been rewritten using iteration instead of recursion.
state one benefit and one drawback
Computational Thinking Algorithms and Programming

Show answer
Auto Play
Slide 1 / 15
SLIDE
Similar Resources on Wayground
10 questions
CREDIT
Presentation
•
12th Grade
11 questions
Week 1 Summary
Presentation
•
12th Grade
10 questions
Review & Summary Topic 1.1
Presentation
•
12th Grade
11 questions
How to Summarize
Presentation
•
12th Grade
10 questions
Figures of Speech
Presentation
•
12th Grade - University
11 questions
CSA EOC Review
Presentation
•
12th Grade
12 questions
XBOX HISTORY
Presentation
•
12th Grade
13 questions
K.2 Pause for People
Presentation
•
KG
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade