In this function header line, what is missing? voidPrintNumber (int) A. Nothing
ID: 3812237 • Letter: I
Question
In this function header line, what is missing? voidPrintNumber (int) A. Nothing is missing, it is complete. B. The variable name must be included in the input list. C. A semi-colon D. A return type. Which statement is true concerning local variables? A. Local variables are only integers. B. Local variables can be seen by all functions in a program. C. Local variables are in scope while the program is executing. D. Local variables are in scope while the declaring function is executing. Which statement is true concerning global variables? A. Global variables are only integers. B. Global variables can be seen by only one function in a program file. C. Global variables are in scope while the program is executing. D. Global variables are in scope while the declaring function is executing. Which function name is invalid? A. Function-to-Calc-Price B. Function to CalcPrice C. Function_To_Calc?? D. They are all invalid Which function name is valid? A. PrintPrice4Me B. Print?? C. 4PrintingPrice D. They are all valid What is true about a function call statement? A. Every function must be called at least once. B. A function may be called whenever it is needed. C. A function may be called only one time in a program. D. A function may not be called from separate functions. What is wrong with this code? int Money4Me(int dollars) {int pennies, coins; coins = dollars * 100;} A. The function name is invalid. B. There is no return type. C. You can't have math statements inside a function. D. Nothing is wrong with it. What is wrong with this code? voidPrinttoScreen(int dollars, int cents) {coutExplanation / Answer
Hello,
Below are the answers to the given questions.
11) void PrintNumber(int)
Solution: Here, when we are writing the function header, the variable name should be included in the function header.
Hence, Answer is B. The variable name must be included in the input list.
12) Local variable has a limited scope. That is, it can be seen only in the declaring function.
Hence, Answer is D. Local variable are in scope while the declaring function is executing.
13) Global variable has a global scope. That is, it can be seen in the whole program.
Hence, Answer is C. Global variable are in scope while the program is executing.
14) Answer is B.
Function name cannot include spaces.
15) Answer is A.
Function name cannot include ?. And function name cannot start with a number.
16) Answer is B.
Function can be called whenever it is needed.
17) Answer is B.
There is no return type.
18) Answer is C.
Both A&B.
Thanks
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.