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

computer science mutiple choice questions 1. What is wrong with this call statem

ID: 665350 • Letter: C

Question

computer science


mutiple choice questions

1. What is wrong with this call statement? Pristane(string nane)a A it's missing "void" G. The datatype should be removed C The semicolon should be remaved D Nothing is wrong with it ne i 2·in this prototype, what i, missing? vold Printsurber A Nothing is missing.it is complere 8. The variable name must be included in the input Iint D. A returm type 3, in this function header line, what is missing? void Printbumber lint ) A. Nothing is missing. It is complete. B. The variable name must be included in the input lst C A sem-colon o. A return type. 4. What is wrong with this code? int Money4maf int dollaes 1 int peanies, coinsa 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 5 What is wrong with this code? void Printtosereen int dollara, int cents) cout . The dollars are dollars; cout ec n The cents are

Explanation / Answer

1. D

nothing is wrong with it

2. B and C

for defining prototype we should include semicolon and variable name must be included

3.C

semicolon is missing

4. D

nothing is wrong

5. A and B

return type is not void because we are passing arguments as integer and we cant reurn OK. we should return value of dollars and cent