

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
บทเรียนวิชาคอมพิวเตอร์พื้นฐาน
Presentation
•
KG
10 questions
1537 final review
Presentation
•
12th Grade
10 questions
TPAV3
Presentation
•
12th Grade
10 questions
Compound and Simple Interest
Presentation
•
12th Grade
11 questions
Teenager 5 Session 22: Pronunciation & Speaking
Presentation
•
KG
10 questions
K.3 Safety in My Online Neighborhood
Presentation
•
KG
11 questions
boolean algebra
Presentation
•
12th Grade
11 questions
Telephone Vocabulary
Presentation
•
12th Grade
Popular Resources on Wayground
24 questions
PBIS-HGMS Day 10
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Review 3
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
15 questions
HCS SCI 05 Summer School Assessment 3 Review
Quiz
•
5th Grade
35 questions
Lufkin Road Middle School Student Handbook & Policies Assessment
Quiz
•
7th Grade
18 questions
Geo 11.3 Area of Circles and Sectors
Quiz
•
9th - 11th Grade