Home
Explore
Exams
Search for anything
Login
Get started
Home
Engineering
Computer Science
Subroutines
0.0
(0)
Rate it
Studied by 2 people
0.0
(0)
Rate it
Call Kai
Learn
Practice Test
Spaced Repetition
Match
Flashcards
Knowt Play
Card Sorting
1/11
Earn XP
Description and Tags
Computer Science
Add tags
Study Analytics
All Modes
Learn
Practice Test
Matching
Spaced Repetition
Name
Mastery
Learn
Test
Matching
Spaced
No study sessions yet.
12 Terms
View all (12)
Star these 12
1
New cards
Define a subroutine
A sequence of instructions designed to perform a specific task with an identifiable name
2
New cards
A subroutine call has
arguments
3
New cards
Parameters
A value that adds extra information to a procedure or function to adjust its behaviour.
4
New cards
Passing parameters
Specifying the input parameters at the start of a procedure or a function.
5
New cards
How are subroutines represented in flow charts?
6
New cards
Define a procedure without parameters in pseudocode
PROCEDURE
ENDPROCEDURE
7
New cards
Define a procedure with parameters in pseudocode
PROCEDURE
(
:
,
:
...)
ENDPROCEDURE
8
New cards
Call a procedure both without and with parameters
CALL
CALL
(Value1,Value2...)
9
New cards
procedure vs function
A procedure performs a task, whereas a function produces information.
10
New cards
Define a function without parameters
FUNCTION
RETURNS
ENDFUNCTION
11
New cards
Define a function with parameters
FUNCTION
(
:
,
:
...) RETURNS
ENDFUNCTION
12
New cards
the keyword CALL is used to call...
procedures