
Higher SDD - Count occurrences
Presentation
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Easy
G Alexander-Doyle
Used 2+ times
FREE Resource
16 Slides • 5 Questions
1
2
Aims
We are learning how to implement a count occurrence algorithm which traverse arrays or arrays of records.
Achievements (theory)
I can write the code required to implement the standard algorithms in Python. Specifically, I can:
initialise and update variables
loop through an array/array of records with a fixed or conditional loop
set up a condition to test a criteria
return the position of a given piece of data within and array/array of records
I can predict the how the values of variables will change during the execution of a standard algorithm
Achievements (practical)
I can implement a count occurrence algorithm in Python.
3
4
5
6
Match
Match the construct with the description below.
Assignment
Selection
Fixed iteration
Conditional iteration
Updates or initialises a variable
Performs an action when a condition is m
Repeats code a set number of times
Repeats code until a condition is met
Updates or initialises a variable
Performs an action when a condition is m
Repeats code a set number of times
Repeats code until a condition is met
7
Categorize
average = total/10
total = 0
count = count + 1
if age > 18:
Set result to num1 + num2
name = 'John'
if temperature < 30:
if status == 'active':
if grade >= 60:
if day == 'Monday':
for i in range(10):
repeat 5 times:
for counter in range (number):
while count <= 10:
while found == False:
Repeat ... Until found = True
while score <0 or score >100:
Repeat ... until found = Tru or end of list
for x in range (len(array)):
for each pupil in pupils_array do
Categorise the lines of code into the correct construct.
8
9
10
Reorder
Put the constructs in a Higher Standard algorithm into the correct order.
Set up variables
Loop through the array
If statement
Update variables
End of algorithm / Extras
11
12
13
14
Open Ended
What would be the output from this program if the name "Callum" were entered by the user?
15
16
17
18
19
Open Ended
What would be the output from this program if the name the number were entered by the user?
20
Aims
We are learning how to implement a count occurrence algorithm which traverse arrays or arrays of records.
Achievements (theory)
I can write the code required to implement the standard algorithms in Python. Specifically, I can:
initialise and update variables
loop through an array/array of records with a fixed or conditional loop
set up a condition to test a criteria
return the position of a given piece of data within and array/array of records
I can predict the how the values of variables will change during the execution of a standard algorithm
Achievements (practical)
I can implement a count occurrence algorithm in Python.
21
Show answer
Auto Play
Slide 1 / 21
SLIDE
Similar Resources on Wayground
15 questions
MLA Citations
Presentation
•
9th - 12th Grade
17 questions
Rhetoric
Presentation
•
9th - 12th Grade
17 questions
Factors affecting bloodflow
Presentation
•
9th - 12th Grade
17 questions
Surface Area of a Cylinder
Presentation
•
9th - 12th Grade
17 questions
Water Pollution
Presentation
•
9th - 12th Grade
16 questions
Empirical and Molecular Formulas
Presentation
•
9th - 12th Grade
16 questions
FOIL Method
Presentation
•
9th - 12th Grade
16 questions
Intro to Deaf Culture
Presentation
•
9th - 12th Grade
Popular Resources on Wayground
16 questions
Grade 3 Simulation Assessment 2
Quiz
•
3rd Grade
19 questions
HCS Grade 5 Simulation Assessment_1 2526sy
Quiz
•
5th Grade
10 questions
Cinco de Mayo Trivia Questions
Interactive video
•
3rd - 5th Grade
17 questions
HCS Grade 4 Simulation Assessment_2 2526sy
Quiz
•
4th Grade
24 questions
HCS Grade 5 Simulation Assessment_2 2526sy
Quiz
•
5th Grade
13 questions
Cinco de mayo
Interactive video
•
6th - 8th Grade
20 questions
Math Review
Quiz
•
3rd Grade
30 questions
GVMS House Trivia 2026
Quiz
•
6th - 8th Grade