

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
9 questions
Limiting Reactant and Percent Yield
Presentation
•
10th Grade
10 questions
Analyzing Influences
Presentation
•
10th Grade
12 questions
Action and State Verbs
Presentation
•
10th Grade
12 questions
Relationships Within Triangles
Presentation
•
10th Grade
12 questions
Anne Frank Character Change
Presentation
•
6th - 9th Grade
13 questions
Geo 2.1b - Parallel Lines Cut by a Transversal
Presentation
•
10th Grade
13 questions
Polynomial Multiplication
Presentation
•
10th Grade
11 questions
Reading News Online
Presentation
•
5th Grade
Popular Resources on Wayground
6 questions
PRIDE Always and Everywhere
Presentation
•
12th Grade
20 questions
Lab Safety Quiz
Quiz
•
6th Grade
26 questions
KOR Review Kahoot Questions
Quiz
•
8th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
12 questions
Unit Zero lesson 2 cafeteria
Presentation
•
9th - 12th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
10 questions
Riddles Riddles fun Riddles
Quiz
•
6th - 12th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade