Functions, Procedures Flashcards

1
Q

Functions and procedures make a program:

A
  • more readable
  • easier to debug
  • less repetitive
  • simpler
  • more efficient
  • easier to understand by dividing the program up into modules
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do they differ?

A

(a) A procedure does not return a value through its name.
(b) A procedure heading starts with the key word procedure in place of function.
(c) The call statement of a procedure is not part of a larger statement but stands alone as a
complete statement.
(d) A procedure may return one or more or no values to the main program. A function
must return one value that is of limited type.

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

What are macros

A

A single instruction representing a group of instructions, written either by the manufacturere to perform some common task such as input and output, or by the user

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

What is a query?

A

A query is a request for data results, for action on data, or for both.

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

What are they?

A

A function or procedure is a block of code that can be called into execution from anywhere in the program. A procedure is also called a subroutine.

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