
H SDD - Parameter passing (revision)
Presentation
•
Computers
•
10th Grade
•
Practice Problem
•
Easy
G Alexander-Doyle
Used 7+ times
FREE Resource
8 Slides • 5 Questions
1
Parameter passing
Higher Computing Science - Software Design & Development
2
I can identify formal parameters and their associated actual parameters in code
Achievements
We are learning how data can be passed in and out of sub-programs using parameter passing.
aims
3
Parameter passing
A parameter is a value that is being passed into and/or out of a subprogram. When this subprogram is called the program must provided the required parameters, this is called parameter passing.
4
Actual Parameters
An actual parameter is the value that is being passed into the subprogram that will be used in within the scope of that subprogram. These parameters are used in call statements and can be the raw data or assigned to a variable. The call statements will always include the name of the sub-program with the parameters in brackets like so :-
Validate_percentage (0, 100, number)
SET Score TO Calculate_percentage (exam_score, coursework_score)
5
Actual Parameters - Exam question
The code below was created to display the dogID for those customers that are to be offered a discount.
Identify the line of code that would contain the actual parameters.
6
Formal Parameters
A formal parameter is the name given to the parameters identified in definition of the subprogram. Formal parameters are the parameters within brackets in the declaration of a function or procedure. The declaration will always include either PROCEDURE or FUNCTION, the name of the sub-program and the formal parameters in brackets like so :-
FUNCTION Calculate_score (INTEGER exam_score, INTEGER coursework_score)
7
FORMAL Parameters - Exam question
The code below was created to display the dogID for those customers that are to be offered a discount.
Identify the line of code that would contain the formal parameters.
8
Open Ended
Formal and actual parameters are used in this code.
Identify one formal parameter and its associated actual parameter. (2 marks)
9
Open Ended
Formal and actual parameters are used in this code above.
Identify one formal parameter and its associated actual parameter. (2 marks)
10
Fill in the Blanks
Type answer...
11
Fill in the Blanks
Type answer...
12
Open Ended
Describe how the parameters are used when executing line 23. Your answer should identify the formal and actual parameters. (3 marks)
13
Parameter passing
Higher Computing Science - Software Design & Development
Show answer
Auto Play
Slide 1 / 13
SLIDE
Similar Resources on Wayground
11 questions
PSAT Orientation
Presentation
•
10th Grade
10 questions
Defining class and object
Presentation
•
10th Grade
10 questions
An introduction to Pseudocode
Presentation
•
10th Grade
7 questions
Lessons 11-12 Career planning
Presentation
•
10th Grade
9 questions
Variable Naming
Presentation
•
10th Grade
10 questions
Cell Differentiation
Presentation
•
9th - 10th Grade
10 questions
MATERI 6 : Modal in English
Presentation
•
10th Grade
9 questions
Arts and Crafts
Presentation
•
KG - 10th 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