

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 Blank
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
8
Fill in the Blank
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)
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
Compound and Simple Interest
Lesson
âĒ
12th Grade
11 questions
Teenager 5 Session 22: Pronunciation & Speaking
Lesson
âĒ
KG
10 questions
K.3 Safety in My Online Neighborhood
Lesson
âĒ
KG
11 questions
boolean algebra
Lesson
âĒ
12th Grade
11 questions
Telephone Vocabulary
Lesson
âĒ
12th Grade
10 questions
āļāļāđāļĢāļĩāļĒāļāļ§āļīāļāļēāļāļāļĄāļāļīāļ§āđāļāļāļĢāđāļāļ·āđāļāļāļēāļ
Lesson
âĒ
KG
10 questions
1537 final review
Lesson
âĒ
12th Grade
10 questions
TPAV3
Lesson
âĒ
12th Grade
Popular Resources on Wayground
10 questions
5.P.1.3 Distance/Time Graphs
Quiz
âĒ
5th Grade
10 questions
Fire Drill
Quiz
âĒ
2nd - 5th Grade
20 questions
Equivalent Fractions
Quiz
âĒ
3rd Grade
15 questions
Hargrett House Quiz: Community & Service
Quiz
âĒ
5th Grade
20 questions
Main Idea and Details
Quiz
âĒ
5th Grade
20 questions
Context Clues
Quiz
âĒ
6th Grade
20 questions
Inferences
Quiz
âĒ
4th Grade
15 questions
Equivalent Fractions
Quiz
âĒ
4th Grade