Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beyond Big Data Using Social MDM To Drive Deep Customer Insight

Authors: Martin Oberhofer, Eberhard Hechler

1st Edition

0133509796, 9780133509793

More Books

Students also viewed these Databases questions