Menu mobile
Home
PYTHON
Python Tutorial
Program Example
Interview Questions
JAVA
Java Tutorial
Program Example
Interview Questions
C Language
C Tutorial
Program Example
Interview Questions
Web Design
HTML
CSS
Java Script
PHP
Assignment
MS Office
HTML
CSS
Java Script
QUIZ ON : C LANGUAGE - FUNCTIONS
FUNCTIONS
00:00:00
English
Hindi
Question No# :
01
out of 50
Functions can be called either by value or by reference.
Functions can be called either by value or by reference.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
02
out of 50
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
TRUE
B.
FALSE
FALSE
Question No# :
03
out of 50
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# :
04
out of 50
Functions can return a floating point number.
Functions can return a floating point number.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
05
out of 50
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# :
06
out of 50
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# :
07
out of 50
Every function must return a value
Every function must return a value
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
08
out of 50
Functions can be called only by value
Functions can be called only by value
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
09
out of 50
Names of functions in two different files linked together must be unique.
Names of functions in two different files linked together must be unique.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
10
out of 50
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# :
11
out of 50
Functions cannot return a floating point number
Functions cannot return a floating point number
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
12
out of 50
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# :
13
out of 50
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# :
14
out of 50
In C functions the actual expressions / parameters are passed on to formal parameters using the method of call by value result
In C functions the actual expressions / parameters are passed on to formal parameters using the method of call by value result
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
15
out of 50
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
TRUE
B.
FALSE
FALSE
Question No# :
16
out of 50
Functions that do not contain return statement do not return any value.
Functions that do not contain return statement do not return any value.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
17
out of 50
The data structure used to implement recursive function calls
डेटा संरचना का उपयोग पुनरावर्ती फ़ंक्शन कॉल को लागू करने के लिए किया जाता है
A.
Array
B.
Linked list
C.
Binary tree
D.
Stack
Question No# :
18
out of 50
Recursion cannot call a function itself.
Recursion cannot call a function itself.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
19
out of 50
Functions may have several declarations, but only one definition.
Functions may have several declarations, but only one definition.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
20
out of 50
Array is passed to a function using call by value method.
Array is passed to a function using call by value method.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
21
out of 50
The address of the variable is passed to a function in call by reference.
The address of the variable is passed to a function in call by reference.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
22
out of 50
Functions may have several declarations, but only one definition.
Functions may have several declarations, but only one definition.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
23
out of 50
A function in ‘C’ must have at least one argument.
A function in ‘C’ must have at least one argument.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
24
out of 50
Functions cannot return more than one value at a time
Functions cannot return more than one value at a time
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
25
out of 50
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# :
26
out of 50
void (*ptr)() is a pointer to a function which receives nothing and returns nothing.
void (*ptr)() is a pointer to a function which receives nothing and returns nothing.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
27
out of 50
Every function in ‘C’ must have a “return” statement.
Every function in ‘C’ must have a “return” statement.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
28
out of 50
Functions can return a floating point number.
Functions can return a floating point number.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
29
out of 50
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# :
30
out of 50
A function name can be passed as an argument to another function.
A function name can be passed as an argument to another function.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
31
out of 50
A function can have any number of return statements.
A function can have any number of return statements.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
32
out of 50
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
TRUE
B.
FALSE
FALSE
Question No# :
33
out of 50
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# :
34
out of 50
In C all functions except main() can be called recursively.
In C all functions except main() can be called recursively.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
35
out of 50
In a function two return statements should never occur.
In a function two return statements should never occur.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
36
out of 50
Actual parameters are used at the time of function calling.
Actual parameters are used at the time of function calling.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
37
out of 50
Which keyword can be used for coming out of recursion?
पुनरावृत्ति से बाहर आने के लिए किस कीवर्ड का उपयोग किया जा सकता है?
A.
break
B.
return
C.
exit
D.
Both break and return
Question No# :
38
out of 50
Recursion works faster than loops.
Recursion works faster than loops.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
39
out of 50
In a function two return statements should never occur.
In a function two return statements should never occur.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
40
out of 50
Recursion cannot call a function itself.
Recursion cannot call a function itself.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
41
out of 50
A ‘C’ function can contain many return statements.
A ‘C’ function can contain many return statements.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
42
out of 50
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# :
43
out of 50
The value obtained in the function is given back to main by using ________ keyword.
फ़ंक्शन में प्राप्त मान को ________ कीवर्ड का उपयोग करके मुख्य रूप से वापस दिया जाता है।
A.
return
B.
static
C.
new
D.
volatile
Question No# :
44
out of 50
The names of parameters in a function definition and its declaration must be same.
The names of parameters in a function definition and its declaration must be same.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
45
out of 50
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# :
46
out of 50
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# :
47
out of 50
Recursion is sometimes called
Recursion is sometimes called
A.
Circular definition
B.
Complex definition
C.
Procedure
D.
Union
Question No# :
48
out of 50
Functions cannot return more than one value at a time.
Functions cannot return more than one value at a time.
A.
TRUE
TRUE
B.
FALSE
FALSE
Question No# :
49
out of 50
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# :
50
out of 50
The value obtained in the function is given back to main by using ________ keyword?
फ़ंक्शन में प्राप्त मान को ________ कीवर्ड का उपयोग करके मुख्य रूप से वापस दिया जाता है?
A.
return
B.
static
C.
new
D.
volatile
CCC Online Test 2021
CCC Practice Test Hindi
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 NIELIT Study material and Quiz
Bank SSC Railway TET UPTET Question Bank
career counselling in allahabad
Sarkari Naukari Notification
Best Website and Software Company in Allahabad
Website development Company in Allahabad