

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
Type answer...
8
Fill in the Blanks
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
Coding in Kindergarten 2023
Presentation
•
KG
10 questions
Criteria and Constraints
Presentation
•
12th Grade
10 questions
COC1G11
Presentation
•
12th Grade
10 questions
3.5 Network Adapters Video Questions
Presentation
•
12th Grade
10 questions
KOMUNIKASI DARING SINKRON DAN ASINKRON
Presentation
•
12th Grade
13 questions
Present and Past Tenses
Presentation
•
12th Grade
10 questions
Plessy v. Ferguson
Presentation
•
12th Grade
10 questions
Algebra - Lesson Distance Between Points
Presentation
•
12th Grade
Popular Resources on Wayground
19 questions
Naming Polygons
Quiz
•
3rd Grade
10 questions
Prime Factorization
Quiz
•
6th Grade
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade