Subroutines and functions Flashcards

1
Q

What is a function?

A

A named section of code that performs a specific task.

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

What’s the difference between a function and a procedure?

A

Procedures doesn’t return a value.

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

What is a subroutine?

A

A subroutine is a sequence of instructions that perform a specific task within a program. A subroutine can be extracted and used in other programs where appropriate.

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