ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ C LANGUAGE - FUNCTIONS MCQ Questions
English
Hindi
Question No. -
01
Report Bug
A function cannot be defined inside another function
A function cannot be defined inside another function
A.
TRUE
सही
B.
FALSE
गलत
Explanation
A function cannot be defined inside the another function, but a function can be called inside a another function.
Question No. -
02
Report Bug
Functions cannot return more than one value at a time
Functions cannot return more than one value at a time
A.
TRUE
सही
B.
FALSE
गलत
Explanation
The default return type for a function is int.
Question No. -
03
Report Bug
In C all functions except main() can be called recursively.
In C all functions except main() can be called recursively.
A.
TRUE
सही
B.
FALSE
गलत
Explanation
Any function including main() can be called recursively.
Question No. -
04
Report Bug
Functions can be called only by value
Functions can be called only by value
A.
TRUE
सही
B.
FALSE
गलत
Explanation
A function can be called either call by value or call by reference. Example: Call by value means c = sub(a, b); here value of a and b are passed. Call by reference means c = sub(&a, &b); here address of a and b are passed.
Question No. -
05
Report Bug
Names of functions in two different files linked together can be same
Names of functions in two different files linked together can be same
A.
TRUE
सही
B.
FALSE
गलत
Explanation
If two function are declared in a same name, it gives "Error: Multiple declaration of function_name())".
Question No. -
06
Report Bug
Functions cannot return a floating point number
Functions cannot return a floating point number
A.
TRUE
सही
B.
FALSE
गलत
Explanation
A function can return floating point value.
Question No. -
07
Report Bug
Every function must return a value
Every function must return a value
A.
TRUE
सही
B.
FALSE
गलत
Explanation
If a function return type is declared as void it cannot return any value.
Question No. -
08
Report Bug
If a function contains two return statements successively, the compiler will generate warnings.?
If a function contains two return statements successively, the compiler will generate warnings.?
A.
TRUE
सही
B.
FALSE
गलत
Explanation
Yes. If a function contains two return statements successively, the compiler will generate "Unreachable code" warnings.
Question No. -
09
Report Bug
Maximum number of arguments that a function can take is 12
Maximum number of arguments that a function can take is 12
A.
TRUE
सही
B.
FALSE
गलत
Explanation
C can accept upto 127 maximum number of arguments in a function.
Question No. -
10
Report Bug
Recursion works faster than loops.
Recursion works faster than loops.
A.
TRUE
सही
B.
FALSE
गलत
Explanation
When a recursive call is made, the function/process clones itself and then process that funtion. This leads to time and space constrains. In a loop, there is no recursive call involved that saves a lot of time and space too.
1
2
3
4
5
6
CCC Online Test 2021
CCC Practice Test Hindi
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
O Level NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Exam Quiz
Website development Company in Allahabad