Computer Science MCQs Programming C++ Sample 02
TOPIC: FUNCTION 1.The main advantage of function · Reusability · Safe memory space · Direct use of memory · Continuity · Error Recovery 2.tick any one valid pre-define function. · sqrt() · Power() · cin · main() 3.Can a function have a l oca l var i able with the same name as a global variable? · Yes · No 4.When a function accepts multiple arguments, does it ma t ter what order t he arguments are passed in? · yes · No 5.A ( n) ___ variable is defined ins i de a funct i on and is not accessible outside the func t ion . · local · global · static 6.T he ____is the part of a function definition that shows the function name, return type, and parameter list. · Function header · Function body · Function definition · Function call 7.If a