ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ C - FUNCTIONS MCQ Questions
English
Hindi
Question No. -
41
Report Bug
Due to variable scope in C
Due to variable scope in C
A.
Variables created in a function cannot be used another function
Variables created in a function cannot be used another function
B.
Variables created in a function can be used in another function
Variables created in a function can be used in another function
C.
Variables created in a function can only be used in the main function
Variables created in a function can only be used in the main function
D.
None of the above
None of the above
Question No. -
42
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
गलत
Question No. -
43
Report Bug
getchar() function is available in which header file?
getchar() function is available in which header file?
A.
Stdio.h
Stdio.h
B.
Conio.h
Conio.h
C.
Math.h
Math.h
D.
Header.h
Header.h
Question No. -
44
Report Bug
In C, if you pass an array as an argument to a function, what actually gets passed?
C में, यदि आप किसी फ़ंक्शन के तर्क के रूप में एक सरणी पास करते हैं, तो वास्तव में क्या पारित होता है?
C में, यदि आप किसी फ़ंक्शन के तर्क के रूप में एक सरणी पास करते हैं, तो वास्तव में क्या पारित होता है?
A.
Value of elements in array
B.
First element of the array
C.
Base address of the array
D.
Address of the last element of array
Explanation
The statement 'C' is correct. When we pass an array as a funtion argument, the base address of the array will be passed.
Question No. -
45
Report Bug
An array can be passed to a function by
किसी सरणी को फ़ंक्शन द्वारा पास किया जा सकता है
किसी सरणी को फ़ंक्शन द्वारा पास किया जा सकता है
A.
Call by reference
B.
Call by value
C.
Call by reference by passing base address to a function
D.
Both A and C
Question No. -
46
Report Bug
The value obtained in the function is given back to main by using ________ keyword?
फ़ंक्शन में प्राप्त मान को ________ कीवर्ड का उपयोग करके मुख्य रूप से वापस दिया जाता है?
फ़ंक्शन में प्राप्त मान को ________ कीवर्ड का उपयोग करके मुख्य रूप से वापस दिया जाता है?
A.
return
B.
static
C.
new
D.
volatile
Question No. -
47
Report Bug
What is the return-type of the function sqrt()
फ़ंक्शन sqrt () का रिटर्न-प्रकार क्या है
फ़ंक्शन sqrt () का रिटर्न-प्रकार क्या है
A.
int
B.
float
C.
double
D.
depends on the data type of the parameter
Question No. -
48
Report Bug
Which keyword can be used for coming out of recursion?
पुनरावृत्ति से बाहर आने के लिए किस कीवर्ड का उपयोग किया जा सकता है?
पुनरावृत्ति से बाहर आने के लिए किस कीवर्ड का उपयोग किया जा सकता है?
A.
break
B.
return
C.
exit
D.
Both break and return
Question No. -
49
Report Bug
The data structure used to implement recursive function calls
डेटा संरचना का उपयोग पुनरावर्ती फ़ंक्शन कॉल को लागू करने के लिए किया जाता है
डेटा संरचना का उपयोग पुनरावर्ती फ़ंक्शन कॉल को लागू करने के लिए किया जाता है
A.
Array
B.
Linked list
C.
Binary tree
D.
Stack
Explanation
The compiler uses the data type stack for implementing normal as well as recursive function calls.
Question No. -
50
Report Bug
In the absence of a exit condition in a recursive function, the following error is given
एक पुनरावर्ती फ़ंक्शन में निकास स्थिति की अनुपस्थिति में, निम्नलिखित त्रुटि दी गई है
एक पुनरावर्ती फ़ंक्शन में निकास स्थिति की अनुपस्थिति में, निम्नलिखित त्रुटि दी गई है
A.
Compile time error
B.
Run time error
C.
Logical error
D.
No error
Explanation
When a recursive function is called in the absence of an exit condition, it results in an infinite loop due to which the stack keeps getting filled(stack overflow). This results in a run time error.
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