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
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
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
4
Q
What is the result of a function called?
A
the return value
5
Q
functions provided as part of a programming language are called
A
built in or library functions