Procedures and functions Flashcards

1
Q

What is the difference between a procedure and a function?

A

Procedures and functions are very similar, but a function returns a result whereas a procedure does not

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

What is a function for?

A

A way of grouping together a set of actions that perform a task so that code can be reused

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

What is the name of information given to a function to use?

A

parameters. There can be no, one or many parameters to a function / procedure

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

What is the result of a function called?

A

the return value

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

functions provided as part of a programming language are called

A

built in or library functions

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