

2.2 Subprograms
Presentation
•
Computers
•
10th Grade
•
Easy
Leah Tomlinson
Used 1+ times
FREE Resource
11 Slides • 5 Questions
1
2.2 Subprograms

2
3
4
5
Open Ended
Write a procedure where the user enters a number, it then squares it and outputs the answer
6
7
8
Open Ended
Write a function that adds together two numbers that are passed to the function as parameters
9
10
11
12
Multiple Choice
What would the following display?
PROCEDURE runningtotal(num as INT)
total = total + num
print("The total is " + str(total))
ENDPROCEDURE
#main program
runningtotal(6)
runningtotal(4)
"The total is 6
The total is 4
"The total is 6
The total is 10"
13
Multiple Choice
What needs to happen to the 'total' variable in the previous procedure in order for the program to work?
it needs to be declared locally
it needs to be declared globally
14
15
16
Open Ended
Give one reason why you would use a subprogram?
2.2 Subprograms

Show answer
Auto Play
Slide 1 / 16
SLIDE
Similar Resources on Wayground
10 questions
Analyzing Influences
Presentation
•
10th Grade
12 questions
Action and State Verbs
Presentation
•
10th Grade
12 questions
Anne Frank Character Change
Presentation
•
6th - 9th Grade
13 questions
Polynomial Multiplication
Presentation
•
10th Grade
13 questions
Geo 2.1b - Parallel Lines Cut by a Transversal
Presentation
•
10th Grade
11 questions
Reading News Online
Presentation
•
5th Grade
9 questions
Limiting Reactant and Percent Yield
Presentation
•
10th Grade
12 questions
Relationships Within Triangles
Presentation
•
10th Grade
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Assessment 2
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
12 questions
2026 TAP Technology in the Classroom
Presentation
•
Professional Development
15 questions
HCS SCI 05 Summer School Assessment 2 Review
Quiz
•
5th Grade
15 questions
HCS SCI 04 Summer School Review 2
Quiz
•
4th Grade
59 questions
Geometry Unit 3 Review
Quiz
•
9th - 12th Grade
14 questions
FAST ELA READING SMAPLE TEST MATERIALS
Passage
•
3rd Grade