Class 11 - Computer Science (C++)
User Defined Functions
Q & A
SHORT ANSWER TYPE QUESTIONS
Q1(MCQ): A function’s single most important role is to
(a) give a name to a block of code
(b) reduce program size
(c) accept argument and provide a return value
(d) help organize a program well
Answer: (d) help organize a program well
Q2: Define a function. What is the name of one-statement description of a function?
Answer: A function is a subprogram that acts on data and often returns a value. The name of one-statement description of a function is procedure or prototype.
OR
Q3: Function prototype is alternatively called. What is the statement specifically called that invokes a function?
Answer: A function prototype is alternatively called function declaration. The statement that invokes a function is specifically called function call.