1. This is a collection of statements that performs a specific task. a. infinite loop b. variable c. constant d. functio

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

1. This is a collection of statements that performs a specific task. a. infinite loop b. variable c. constant d. functio

Post by answerhappygod »

1. This is a collection of statements that performs a specific
task.
a.
infinite loop
b.
variable
c.
constant
d.
function
e.
None of these
2. A function can have zero
to many parameters, and it can return this many values.
a.
zero to many
b.
no
c.
only one
d.
a maximum of ten
e.
None of these
3. A function is executed
when it is
a.
defined
b.
prototyped
c.
declared
d.
called
e.
None of these
4. Functions are ideal for
use in menu-driven programs. When a user selects a menu item,
the program can ________ the appropriate function.
a.
call
b.
prototype
c.
define
d.
declare
e.
None of these
5. This type of variable is
defined inside a function and is not accessible outside the
function.
a.
global
b.
reference
c.
local
d.
counter
e.
None of these
6. The value in this type
of local variable persists between function calls.
a.
global
b.
internal
c.
static
d.
dynamic
e.
None of these
7. This function causes a
function to terminate, regardless of which control mechanism is
executing.
a.
terminate()
b.
return()
c.
continue()
d.
exit()
e.
None of these
8. It is a good programming
practice to ____________ your functions by writing comments that
describe what they do.
a.
execute
b.
document
c.
eliminate
d.
prototype
e.
None of these
9. A(n) _________ is
information that is passed to a function, and a(n) _________ is
information that is received by a function.
a.
function call, function header
b.
parameter, argument
c.
Input argument list, output argument list
d.
prototype, header
e.
None of these
10. Which of the following statements
about global variables is true?
a.
A global variable is accessible only to the main function.
b.
A global variable is declared in the highest-level block in
which it is used.
c.
A global variable can have the same name as a variable that is
declared locally within a function.
d.
If a function contains a local variable with the same name as a
global variable, the global variable's name takes precedence within
the function.
e.
All of these are true
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply