Functions and Procedures Flashcards

1
Q

Do Procedures or Functions return values?

A

Functions, procedures do not.

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

What might you need to do as your programs become larger and more complex?

A

Break down into smaller self contained sections.

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

What do subroutines do?

A

Allow code that you intend to use a number of times to be grouped together under one name.

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

Are functions or procedures subroutines?

A

both are subroutines.

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

Can values be passed to both procedures and functions?

A

Yes.

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

What will Functions do after processing has taken place?

A

Return a value.

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

Can functions and procedures have arguments?

A

yes, both can.

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

Can subroutines be used in other programs?

A

Yes.

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