ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ C LANGUAGE - FILE PROCESSING MCQ Questions
English
Hindi
Question No. -
11
Report Bug
End of file is detected by
End of file is detected by
A.
fend( )
fend( )
B.
endf( )
endf( )
C.
EOF
EOF
D.
FEND
FEND
Question No. -
12
Report Bug
The value of EOF is_____
EOF का मान _____ है
EOF का मान _____ है
A.
-1
B.
0
C.
1
D.
10
Question No. -
13
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. -
14
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. -
15
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. -
16
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. -
17
Report Bug
FILE is of type ______
फ़ाइल ______ प्रकार की है
फ़ाइल ______ प्रकार की है
A.
int type
B.
char * type
C.
struct type
D.
None of the mentioned
Question No. -
18
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. -
19
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. -
20
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.
1
2
3
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