Question
Question 1 Select all of the true statements below. Question 1 options: a. Except for symbolic constants and prototypes, global variables should almost never be
Question 1
Select all of the true statements below.
Question 1 options:
| a. Except for symbolic constants and prototypes, global variables should almost never be used.
b. By making a variable global, you instantly destroy the safeguards C provides to make functions independent and insulated from each other. | ||||||||||||||||||||||||
|
c. Using global variables can be especially disastrous in large programs with many user-created functions. | ||||||||||||||||||||||||
|
d. Global variables should be used whenever you can't figure out a solution that leverages the advantages of local variables. | ||||||||||||||||||||||||
|
e. All of these | ||||||||||||||||||||||||
| f. None of these Question 2 A local variable declared as static causes the program to keep the variable and its value even when the function that declared it is done. Question 2 options:
Question 3 Static variables are initialized at run-time. Question 3 options:
Question 4 Registers are high-speed storage areas physically located in the computer's processing unit and should be used as often as possible to increase the speed of the processing for application programs. Question 4 options:
Question 5 In pass by value, a called function receives values from its calling function, stores the passed values in its own local parameters, manipulates these parameters appropriately, and directly returns, at most, a single value. Question 5 options:
Question 6 Passing an address is referred to as a function pass by reference, because the called function can reference, or access, the variable using the passed address. Question 6 options:
Question 7 A variable that can store an address is known as a pointer variable or pointer. Question 7 options:
|
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started