Procedures And Functions Flashcards

0
Q

What are the uses if procedures and functions

A

Avoids repeating code
Makes code more readable
Helps in debugging
Can use a procedure in other programs

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

What are procedures and functions

A

Both provide a section of code that can be accessed by the main project code as required

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

What is the difference between function and procedure

A

A function always returns one piece of data

A procedure may or may not return one or more pieces of data

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