Menu mobile
Home
Programming
Python Tutorial
Java Tutorial
C Tutorial
C++ Tutorial
Web Technology
HTML
CSS
Java Script
PHP
React JS
Node JS
Assignment
MS Office
HTML
CSS
Bootstrap
Java Script
JQuery
AngularJs
Project
Blog
QUIZ ON : c - FUNCTIONS
FUNCTIONS
00:00:00
English
Hindi
Question No# :
01
out of 19
A self contained block of statements that perform a coherent task of some kind is called a
A self contained block of statements that perform a coherent task of some kind is called a
A.
Monitor
B.
Function
C.
Program
D.
Structure
Question No# :
02
out of 19
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# :
03
out of 19
Recursion is sometimes called
Recursion is sometimes called
A.
Circular definition
B.
Complex definition
C.
Procedure
D.
Union
Question No# :
04
out of 19
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# :
05
out of 19
The keyword used to transfer control from a function back to the calling function is
The keyword used to transfer control from a function back to the calling function is
A.
switch
switch
B.
goto
goto
C.
go back
go back
D.
return
return
Question No# :
06
out of 19
In C, if you pass an array as an argument to a function, what actually gets passed?
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
Question No# :
07
out of 19
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
Question No# :
08
out of 19
Which of the following is the correct order if calling functions in the below code? a = f1(23, 14) * f2(12/4) + f3();
Which of the following is the correct order if calling functions in the below code? a = f1(23, 14) * f2(12/4) + f3();
A.
f1, f2, f3
f1, f2, f3
B.
f3, f2, f1
f3, f2, f1
C.
Order may vary from compiler to compiler
Order may vary from compiler to compiler
D.
None of the above
None of the above
Question No# :
09
out of 19
The data structure used to implement recursive function calls
डेटा संरचना का उपयोग पुनरावर्ती फ़ंक्शन कॉल को लागू करने के लिए किया जाता है
A.
Array
B.
Linked list
C.
Binary tree
D.
Stack
Question No# :
10
out of 19
The value obtained in the function is given back to main by using ________ keyword?
फ़ंक्शन में प्राप्त मान को ________ कीवर्ड का उपयोग करके मुख्य रूप से वापस दिया जाता है?
A.
return
B.
static
C.
new
D.
volatile
Question No# :
11
out of 19
What is the return-type of the function sqrt()
फ़ंक्शन sqrt () का रिटर्न-प्रकार क्या है
A.
int
B.
float
C.
double
D.
depends on the data type of the parameter
Question No# :
12
out of 19
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# :
13
out of 19
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# :
14
out of 19
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# :
15
out of 19
The value obtained in the function is given back to main by using ________ keyword.
फ़ंक्शन में प्राप्त मान को ________ कीवर्ड का उपयोग करके मुख्य रूप से वापस दिया जाता है।
A.
return
B.
static
C.
new
D.
volatile
Question No# :
16
out of 19
Prototype of function named ‘fun’ is: int fun(int a, float b) Which of the following is true about function ‘fun’:
Prototype of function named ‘fun’ is: int fun(int a, float b) Which of the following is true about function ‘fun’:
A.
It takes two inputs, one integer type and the other float type but returns nothing
It takes two inputs, one integer type and the other float type but returns nothing
B.
It takes two inputs, one integer type and the other float type but returns 0
It takes two inputs, one integer type and the other float type but returns 0
C.
It takes two inputs, one integer type and the other float type but returns an integer
It takes two inputs, one integer type and the other float type but returns an integer
D.
It takes two inputs, one integer type and the other integer type but returns float
It takes two inputs, one integer type and the other integer type but returns float
Question No# :
17
out of 19
Which of the following function declaration need not have a return statement in its body?
Which of the following function declaration need not have a return statement in its body?
A.
int a(char *s)
int a(char *s)
B.
void b(int a[], int n)
void b(int a[], int n)
C.
float *c()
float *c()
D.
short d(long x)
short d(long x)
Question No# :
18
out of 19
The name of all functions end with a
The name of all functions end with a
A.
pair of parenthesis
B.
semicolon
C.
braces
D.
colon
Question No# :
19
out of 19
Which keyword can be used for coming out of recursion?
पुनरावृत्ति से बाहर आने के लिए किस कीवर्ड का उपयोग किया जा सकता है?
A.
break
B.
return
C.
exit
D.
Both break and return
Latest Current Affairs 2024
Online Exam Quiz for One day Exam
Online Typing Test
CCC Online Test 2024
Python Programming Tutorials
Best Computer Training Institute in Prayagraj (Allahabad)
Best Java Training Institute in Prayagraj (Allahabad)
Best Python Training Institute in Prayagraj (Allahabad)
O Level Online Test in Hindi
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Sarkari Exam Quiz