adplus-dvertising
frame-decoration

Question

An advantage of using local variables is that _____

a.

they are known to all functions in the file

b.

names used in one function do not affect data stored in variables with the same names in other functions

c.

values given to local variables are retained when those parameters go out of scope

d.

the program does not become "crowded" with too many variable names

Answer: (d).the program does not become "crowded" with too many variable names

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. An advantage of using local variables is that _____

Similar Questions

Discover Related MCQs

Q. Library header files usually contain

Q. A C++ term meaning "generic" is

Q. Before object-oriented exception handling was practiced, _____

Q. The preprocessor directive always ends with

Q. A constructor initialization list produces similar results to

Q. 6.5 is a _____ constant

Q. The time and memory involved in calling a function represent the function's _____

Q. The instruction "If it's raining outside, then take an umbrella to work" is an example of the _____ structure

Q. The >> (extraction) operator stops reading characters from the keyboard as soon as the user _____

Q. The null character is represented by

Q. The break statement is

Q. A variable w with a value 67 may be defined with _______

Q. An expression contains relational, assignment and arithmetic operators. In the absence of parentheses, the order of evaluation will be

Q. The keyword virtual indicates that

Q. Variables that are declared in a block are known as _____ variables to that block

Q. The pow and sqrt functions return a(n) _____ type number

Q. Declaring variables is advantageous because it

Q. The switch variable can be of

Q. Which of the following are void functions?

Q. Hiding individual components of an entry is _____