1/11
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Define a subroutine
A sequence of instructions designed to perform a specific task with an identifiable name
A subroutine call has
arguments
Parameters
A value that adds extra information to a procedure or function to adjust its behaviour.
Passing parameters
Specifying the input parameters at the start of a procedure or a function.
How are subroutines represented in flow charts?
Define a procedure without parameters in pseudocode
PROCEDURE
ENDPROCEDURE
Define a procedure with parameters in pseudocode
PROCEDURE
ENDPROCEDURE
Call a procedure both without and with parameters
CALL
CALL
procedure vs function
A procedure performs a task, whereas a function produces information.
Define a function without parameters
FUNCTION
ENDFUNCTION
Define a function with parameters
FUNCTION
ENDFUNCTION
the keyword CALL is used to call…
procedures