Question: 14. A function prototype must specify the name of a function and the name and type of each of its parameters. Tor F?(2) are reference
14. A function prototype must specify the name of a function and the name and type of each of its parameters. Tor F?(2) are reference parameters? (2) void ExamPrep (string& name, int age, float& salary, char level) 15. In the following function heading, which parameters are value parameters and which 16. What is wrong with the following function? (4) void Power (int&x, int& y, int& result) I/raise x to the y power result 1; while (y 0) result result *x; y- 17. A local variable can be referenced anywhere within the block it is declared. T or F? 18. Functions can be called from other functions beside main. Tor F?(2) 19. A global variable can be referenced anywhere within a program. Tor F? (2) 20. A function parameter is local to the entire block that is the body of the function. T or F? 21. What is wrong with the following function? (3) int examPrep (int param1, int& param2) ( if (param1- param2) return param2; else if (param2 > param1) return param1; return param1 param2; 22. What is wrong with the following function? (3) void Maximum (int a, int b, int& max) if(a>b)max = a; else max = b; return max; 23. Given the following declarations, how would assign the name Sally Ellen Strong to the studentName field of the variable sally? (4) struct Name f string first string middie; string last; Name yourName; Name myName struct studentRecord Name studentName; Name teacherName; int gradeNumber; string grades; studentRecord sally; 24. The components of an array can be of different types. T or F?(2) 25. What I wrong with the following code segment? (3) int prep[100)] for (int index = 1; index
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
