topic : procedure, functions, subroutines Flashcards

(4 cards)

1
Q

subroutine

A

block of code given a unique identifiable name within a program, can be classified as a function or procedure

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what is a subroutine meant to do

A

break down large problems into a series of smaller more manageable problems so they’re easier to
- code
- debug
- reuse

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

procedure

A

named block of code that performs a specific task, but does not return a value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what is a function

A

named block of code that is called to perform a task and it returns a value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly