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

(2 points) main() is a function. (2 points) A function knows _______ about the c

ID: 3529582 • Letter: #

Question

(2 points)main()is a function.

(2 points)A function knows _______ about the calling code.

(2 points)Every function must return a value.

(2 points)It is legal and acceptable to have two local variables in two different functions with the same name and the same data type.

(2 points)With what we have learned so far about C++ functions, a function candirectly(i.e. by itself, not as a consequence of an assignment statement in the calling function) alter _____________ in the calling function

(2 points)Write a function prototype for a function called findLarge. It takes two integers as its arguments and returns an integer.

(2 points)Write a function header for a function called findLarge. It takes two integers as its arguments (named val1 and val2) and returns an integer.

(2 points)Write a complete function called findLarge that will return the larger of two integers. It takes two integers (the values to be compared) as its arguments.

(2 points)Write a complete function called calcTriArea that will calculate and return the area of a triangle. It takes two float/double values: the base and height as its arguments. The area of a triangle is one-half the base times the height.

(2 points)A function exists calledcalc(). It takes two integer arguments and returns a real result. Assume the following declarations:

Write asinglestatement that will print the result of callingcalc()with these arguments.

(2 points)If a function takes two integer arguments it

Explanation / Answer

main()is a function :- true

nothing

false

true

1 or more values

void findlarge(int num1, int num2)

{

If (num1>num2);

Printf(