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

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

What is a function

A

A function is very similar to a procedure except it returns a value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

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