ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ C - FUNCTIONS MCQ Questions
English
Hindi
Question No. -
21
Report Bug
Functions may have several declarations, but only one definition.
Functions may have several declarations, but only one definition.
A.
TRUE
सही
B.
FALSE
गलत
Explanation
Yes, you can have multiple declarations (or prototypes), but you can only have one function definition for a given function name in C, or function name + arguments in C++. This needs to be supported for the very frequent situation where a function has prototypes in several include files but only one definition.
Question No. -
22
Report Bug
Functions can return a floating point number.
Functions can return a floating point number.
A.
TRUE
सही
B.
FALSE
गलत
Explanation
Yes, you can use float as a return type in C. Yes you can use, write prototype before calling that function otherwise compiler will assume it has a int and returns the int value.
Question No. -
23
Report Bug
In a function two return statements should never occur.
In a function two return statements should never occur.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
24
Report Bug
For the function
int operation (int A[], int n)
{
…
…
}
Which is the appropriate calling statement from main program?
For the function
int operation (int A[], int n)
{
…
…
}
Which is the appropriate calling statement from main program?
A.
s=operation(A[], 6)
s=operation(A[], 6)
B.
operation(A, 6)
operation(A, 6)
C.
k=operation(A, 6)
k=operation(A, 6)
D.
d=operation(int A, 6)
d=operation(int A, 6)
Question No. -
25
Report Bug
In ‘C’, parameters to a function can be passed by value but not by reference.
In ‘C’, parameters to a function can be passed by value but not by reference.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
26
Report Bug
Changes made to an array inside a function are automatically reflected in calling program.
Changes made to an array inside a function are automatically reflected in calling program.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
27
Report Bug
Every function in ‘C’ must have a “return” statement.
Every function in ‘C’ must have a “return” statement.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
28
Report Bug
Function putchar() displays
Function putchar() displays
A.
one word at a time on the screen
one word at a time on the screen
B.
one character at a time
one character at a time
C.
result on the screen
result on the screen
D.
None of the above
None of the above
Question No. -
29
Report Bug
Recursion cannot call a function itself.
Recursion cannot call a function itself.
A.
TRUE
सही
B.
FALSE
गलत
Question No. -
30
Report Bug
A function in ‘C’ must have at least one argument.
A function in ‘C’ must have at least one argument.
A.
TRUE
सही
B.
FALSE
गलत
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