ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ C LANGUAGE QUIZ C LANGUAGE MCQ Questions C LANGUAGE Questions Answer for Interview
English
Hindi
Question No. -
361
Report Bug
Which of the following true about FILE *fp
निम्नलिखित में से कौन सा FILE * fp के बारे में सही है
निम्नलिखित में से कौन सा FILE * fp के बारे में सही है
A.
FILE is a keyword in C for representing files and fp is a variable of FILE type.
B.
FILE is a structure and fp is a pointer to the structure of FILE type
C.
FILE is a stream
D.
FILE is a buffered stream
Explanation
fp is a pointer of FILE type and FILE is a structure that store following information about opened file.
Question No. -
362
Report Bug
The first and second arguments of fopen are ______
FOPEN के पहले और दूसरे तर्क ______ हैं
FOPEN के पहले और दूसरे तर्क ______ हैं
A.
A character string containing the name of the file & the second argument is the
mode
B.
A character string containing the name of the user & the second argument is the
mode
C.
A character string containing file poniter & the second argument is the mode
D.
None of the mentioned
Question No. -
363
Report Bug
If there is any error while opening a file, fopen will return
यदि फ़ाइल खोलते समय कोई त्रुटि है, तो फ़ोपेन वापस आ जाएगी
यदि फ़ाइल खोलते समय कोई त्रुटि है, तो फ़ोपेन वापस आ जाएगी
A.
Nothing
B.
EOF
C.
NULL
D.
Depends on compiler
Question No. -
364
Report Bug
fseek() should be preferred over rewind() mainly because
fseek () को रिवाइंड () पर मुख्य रूप से पसंद किया जाना चाहिए
fseek () को रिवाइंड () पर मुख्य रूप से पसंद किया जाना चाहिए
A.
rewind() doesn't work for empty files
B.
rewind() may fail for large files
C.
In rewind, there is no way to check if the operations completed successfully
D.
All of the above
Question No. -
365
Report Bug
FILE is of type ______
फ़ाइल ______ प्रकार की है
फ़ाइल ______ प्रकार की है
A.
int type
B.
char * type
C.
struct type
D.
None of the mentioned
Question No. -
366
Report Bug
getc() returns EOF when
getc () जब EOF लौटाता है
getc () जब EOF लौटाता है
A.
End of files is reached
B.
When getc() fails to read a character
C.
Both of the above
D.
None of the above
Question No. -
367
Report Bug
An array is also known as
एक सरणी के रूप में भी जाना जाता है
एक सरणी के रूप में भी जाना जाता है
A.
Subscripted variable
B.
Collective array
C.
Ordinary variable
D.
Similar Quantities variable
Question No. -
368
Report Bug
Till the array elements are not given any specific value, they are supposed to contain all
जब तक सरणी तत्वों को कोई विशिष्ट मान नहीं दिया जाता है, तब तक वे सभी को शामिल करने वाले होते हैं
जब तक सरणी तत्वों को कोई विशिष्ट मान नहीं दिया जाता है, तब तक वे सभी को शामिल करने वाले होते हैं
A.
Zero
B.
Garbage value
C.
One
D.
Combination of zero and one
Question No. -
369
Report Bug
If array is initialized where it is declared, then mentioning __________ of array is optional.
यदि ऐरे को आरंभीकृत किया जाता है, जहां यह घोषित किया जाता है, तो ऐरे का __________ का उल्लेख वैकल्पिक है।
यदि ऐरे को आरंभीकृत किया जाता है, जहां यह घोषित किया जाता है, तो ऐरे का __________ का उल्लेख वैकल्पिक है।
A.
Data type
B.
Dimension
C.
name
D.
Data type and Dimension
Question No. -
370
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. -
371
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. -
372
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. -
373
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. -
374
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. -
375
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.
Question No. -
376
Report Bug
Which one of the following is correct syntax for opening a file.
फ़ाइल खोलने के लिए निम्नलिखित में से कौन सा सही वाक्यविन्यास है।
फ़ाइल खोलने के लिए निम्नलिखित में से कौन सा सही वाक्यविन्यास है।
A.
FILE *fopen(const *filename, const char *mode)
B.
FILE *fopen(const *filename)
C.
FILE *open(const *filename, const char *mode)
D.
FILE open(const*filename)
Explanation
fopen() opens the named file, and returns a stream, or NULL of the attempt fails.
Question No. -
377
Report Bug
What is the function of the mode ‘ w+’?
मोड 'w +' का कार्य क्या है?
मोड 'w +' का कार्य क्या है?
A.
create text file for writing, discard previous contents if any
B.
create text file for update, discard previous contents if any
C.
create text file for writing, do not discard previous contents if any
D.
create text file for update, do not discard previous contents if any
Explanation
w+ is a mode used to open a text file for update (i. e., writing and reading), discard previous contents if any.
Question No. -
378
Report Bug
If the mode includes b after the initial letter, what does it indicates?
यदि प्रारंभिक पत्र के बाद मोड में बी शामिल है, तो यह क्या इंगित करता है?
यदि प्रारंभिक पत्र के बाद मोड में बी शामिल है, तो यह क्या इंगित करता है?
A.
text file
B.
big text file
C.
binary file
D.
blueprint text
Explanation
If the mode consists of letter b after the first letter as in, “rb” or “w+b”, it indicates binary file.
Question No. -
379
Report Bug
EOF is an integer type defined in stdio. h and has a value
EOF stdio में परिभाषित एक पूर्णांक प्रकार है। हाथ का एक मूल्य है
EOF stdio में परिभाषित एक पूर्णांक प्रकार है। हाथ का एक मूल्य है
A.
1
B.
0
C.
NULL
D.
– 1
Explanation
EOF is an integer type defined in stdio. hand has a value – 1
Question No. -
380
Report Bug
What is the function of fputs()?
fputs () का कार्य क्या है?
fputs () का कार्य क्या है?
A.
read a line from a file
B.
read a character from a file
C.
write a character to a file
D.
write a line to a file
Explanation
The fputs() is used to write a line to a file. fputs() syntax can be written as int fputs(const char *str, FILE *stream);
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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