Unsolved MCQs
Unsolved MCQs
Objective Type
13) A function that does not return any thing has return type .
a) Nothing b) Float c) Void d) Null
15) Following term of a function describes the number and type of its arguments and the return type of the function .
a) Size b) Name c) Header d) Type
16) The first line of function definition is known as .
a) Function body b) Function call c) Function header d) Function argument
17) What is true about a function prototype ?
a) It is also referred to as b) It is terminated with a c) It is a single statement d) All of these
function declaration semicolon ( ; )
18) Function declaration consists of
a) Function name b) Function return type c) Number and types of d) All of these
parameters
19) A function
a) May return more than one b) Cannot return any value c) May return only one value d) May return two values
values
20) The actual values are passed to the function in .
a) Function declaration b) Function definition c) Function call d) Called function body
21) A function is called with help of its .
a) Name b) Parameter c) Definition d) Return value
22) The statement that activates a function is called .
a) Function call b) Function output c) Invoking a function d) Function input
23) Which of the following looks for the prototype of functions , when a function is called .
a) Linker b) Loader c) Compiler d) Parser
24) Actual argument are used in .
a) Function declaration b) Functioncall c) Function prototype d) Function definition
25) The scope of a variable refers to its .
a) Length b) Name c) Accessibility d) Data type
26) The region of a program in which a variable is accessible is called .
a) Area b) Scope c) Function d) Use
27) Local variable are also called .
a) Automatic variable b) Register variable c) Static variable d) Run time variable
31) The variables that are declared outside all blocks are called .
a) General variables b) Global variables c) Local variables d) Global data items
33) Which of the following type of variables are destroyed when the program is terminated .
a) Register variables b) Automatic variables c) Local variables d) Global variables
41) printf () is a .
a) Built-in function b) User-defined function c) Local function d) Keyword
52) Global variables exist in memory till the execution of the program .
☐ True ☐ False
57) A ______ provide basic information about the function to the compiler .
58) The duration for which a variable exists in memory is called its ____________
59) __________ of a variable refers to the region of the program where it can be referenced .
61) A function cannot return more than ________ value (s) through return statement .
62) The parameters specified in the function header are called _________ parameter .
63) The parameters passed to a function in the function call are called _______ parameters .