Explain the difference between a function procedure and a subprocedure.

What will be an ideal response?


A function procedure, or function, performs operations, returns a value, accepts input values, and can be used in expressions. A subprocedure, or subroutine, performs operations and accepts input values, but does not return a value and cannot be used in expressions.

Computer Science & Information Technology

You might also like to view...

Which of the following is not an algorithm?

a. A recipe. b. Operating instructions. c. Textbook index. d. Shampoo instructions (lather, rinse, repeat).

Computer Science & Information Technology

What do you do if there is an error message when you reboot the computer after installing RAM?

A) Turn the computer off and wait 30 seconds before turning it on again. B) The RAM chip is defective, so return it to the place of purchase for replacement. C) Take the RAM chip out and try reinserting it. D) Remove the processor and reinsert it, so it can initialize the RAM.

Computer Science & Information Technology

? ? Referring to the figure above, which code is a cue time range?

A. WEBVTT FILE B. 1 C. 00:00.000 --> 00:31.000 D. A bush with purple flowers is covered with many dark butterflies, some of which slowly beat their wings.

Computer Science & Information Technology

Presenting someone else’s work as your own is referred to as ____, which is illegal and unethical.

A. duplicating B. printing C. plagiarism D. copying

Computer Science & Information Technology