Which of the following statements correctly defines local variable scope?
A. Scope is limited to objects of the class
B. Scope has not limit
C. Scope is limited to the loop, module, class or method in which it is defined
D. None of the above
Answer: C
You might also like to view...
What is wrong with the following switch statement?
int ans; cout <<"Type y for yes on n for no\n"; cin >> ans; switch (ans) { case 'y': case 'Y': cout << "You said yes\n"; break; case 'n': case 'N': cout << "You said no\n"; break; default: cout <<"invalid answer\n"; } a. ans is a int b. break; is illegal syntax c. nothing d. there are no break statements on 2 cases.
The third Fibonacci number is ____.
A. the sum of the first two Fibonacci numbers B. the sum of the last two Fibonacci numbers C. the product of the first two Fibonacci numbers D. the product of the last two Fibonacci numbers
A(n) ________ chart is a variation of a stacked line chart that emphasizes the magnitude of change over time and visually depicts a trend
A) combination B) bar C) column D) area
Access control is intended to guard the ____ of information by making it accessible only to authorized users.
A. confidentiality B. availability C. integrity D. non-repudiation