Subroutines

0.0(0)
studied byStudied by 2 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/11

flashcard set

Earn XP

Description and Tags

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

12 Terms

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?
knowt flashcard image
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