Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

d precision function with the same name is that the compiler must be b. linkages

ID: 3736257 • Letter: D

Question

d precision function with the same name is that the compiler must be b. linkages 12. The only requirement in creating more than one .length b. complexity e. usability d. data type 13. A function returning a b. data type c. address 14. After a value is returned from a called function, program control reverts to the c. in-line funetion d. calling function b. called function IS. The value returned by a called function is convertied to the data type declared in the function declaration. a. usually b. always d. never 16. Tellin ng the C++ compiler that a funetion is causes a copy of the function code to be placed in the program at the point where the function is called b. online a. inline a called function d. a calling function e. made within a function body ais simply one that has had storage locations set aside for it by a declaration statement a pass by value b. pass by reference c. local scope d. global scope 18. When the scope resolution operator is used before a variable name, the compiler is instructed to use atn) clocal d. character global 19. A local variable that is declared as causes the program to keep the variable and its latest value even when the function that declared it is finished ex executing auto b. statice e. extern d. register 20. Once a global variable is created, it exists until a. control is returned to the calling function b. the program in which it is declared is finished running c. control is returned to the called function the computer is turned off 21. The statements const int NUMEL8 10; and int datatNUMELS]; create an array with storage reserved for a. one byte b. four bytes c. ten integers d. four words

Explanation / Answer

12. d)based on the data type

when two functions have same names then based on the parameters passed to the function, the function which has matching parameters is called.

13. b)data type

Any function prototype or declaration will start with the data type of variable that it returns

14. d)calling function

After returning the value the value returned is passed to the variable to which the function is assigned

15. c)always

The returned value will be converted to the data type specified

17. c)localscope

variable with local scope will be declared within a function and terminated at the end of the function

18. b)global variable

If both local and global variables have same name then using scope resolution operater makes complier to use global variable

19. b)static

Static variables will retain their value even after the function in which they are declared is completely executed.

20. b)program in which its declared is finished running

until the program ends global variable will be available to all the functions in the program

21. c)ten integers

as the value of NUMELS is 10 it will be an array of 10 integers