Procedures And Functions Flashcards
1
Q
What is a procedure
A
A procedure is a block of code that performs a task without returning a value
2
Q
What is a function
A
A function is very similar to a procedure except it returns a value
3
Q
Name the 2 types of functions and define what they do
A
User-defined functions:
Are created by the user for a program
Built-in functions:
Are part of the programming language