Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 All of the following are true of functions EXCEPT: Not yet answered a. The definition of a function usually is visible to other

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Question 1 All of the following are true of functions EXCEPT: Not yet answered a. The definition of a function usually is visible to other functions. Marked out of b. The implementation of a function is hidden from the caller. 1.00 c. They define specific tasks that can be used at many points in a program. d. A function call must specify the name and arguments of the function. The signature of a function consists of a. function name and parameter list b. function name. c. parameter list d. return type, function name, and parameter list Question 3 When an argument is passed-by-value, changes in the called function affect the value of the original variable; when an Not yet argument is passed call-by-reference, changes in the called function affect the value of the original variable. Manked out of a. do not, de not 100 b. do, do F Flag question c. do not, do d. do, donot Question 4 Not yet answered Marked out of 1.00 P Flag question Overioaded functions must have a. different parameter lists b. the same number of default arguments c. the same number of parameters d. different return types Question 5 Not yet answered Marked out of 1.00 P Flag question Suppose char city[9] = "Macau"; what is the output of the following statement: cout 1.00 \\ P. Flag \\ question \\ \hline \end{tabular} Constant variables can be used to specify array sizes, thereby making programs more scalable. a. TRUE b. FALSE Question 7 Not yet answered Marked out of 1.00 F Fiay question The function prototype: double mySqrt(int x); a. Declares a function called mySqrt which takes a double as an argument and returns an integer. b. Defines a function called double which calculates square roots. c. Defines a function called mySqrt which takes an argument of type x and returns a double. d. Declares a function called mysqrt which takes an integer as an argument and returns a double. \begin{tabular}{l} Question 8 \\ Not yet \\ answered \\ Marked out of \\ 1.00 \\ P. Flag \\ question \\ \hline \end{tabular} The last element of an array has position number one less than the array size. a. TRUE b. FALSE Question 9 Not yet answered Marked out of 1.00 P Flag question An array is not a. made up of different data types b. a group of elements with the same data type c. subscripted by integers d. a consecutive group of memory locations Question 10 Not yet answered Marked out of 1.00 P Flag question A function prototype does not have to a. terminate with a semicolon. b. match with all calls to the function c. include parameter names. d. agree with the function definition

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

Step: 3

blur-text-image

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

A Full Guide To Bitcoin Investment

Authors: J.b. Yupangco

1st Edition

8389911302, 978-8389911308

More Books

Students also viewed these Finance questions

Question

What's your favorite holiday?

Answered: 1 week ago