ExamLookup
Menu mobile
Home
Current Affairs
General Knowledge
Computer
Python
HTML
MCQ C - FILE PROCESSING MCQ Questions
English
Hindi
Question No. -
21
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. -
22
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. -
23
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);
Question No. -
24
Report Bug
Which function will return the current file position for stream?
कौन सा फ़ंक्शन स्ट्रीम के लिए वर्तमान फ़ाइल स्थिति लौटाएगा?
कौन सा फ़ंक्शन स्ट्रीम के लिए वर्तमान फ़ाइल स्थिति लौटाएगा?
A.
fgetpos()
B.
fseek()
C.
ftell()
D.
fsetpos()
Explanation
The current file position is returned by ftell() function for stream, or -1L on error.
Question No. -
25
Report Bug
Choose the correct difference between getc() and fgetc().
Getc () और fgetc () के बीच सही अंतर चुनें।
Getc () और fgetc () के बीच सही अंतर चुनें।
A.
If it is not a macro, it may evaluate stream more than once
B.
if it is amacro, it may not evaluate stream more than once
C.
if it is a macro, it may evaluate stream more than once
D.
no difference between fgetc() and getc()
Explanation
getc() is equivalent to fgetc() except that if it is a macro, it may evaluate more than once.
Question No. -
26
Report Bug
In C language, FILE is of which data type?
C भाषा में, FILE किस डेटा प्रकार की है?
C भाषा में, FILE किस डेटा प्रकार की है?
A.
int
B.
char *
C.
struct
D.
None of the mentioned
Question No. -
27
Report Bug
Which type of files can’t be opened using fopen()?
किस प्रकार की फाइलें fopen () का उपयोग करके नहीं खोली जा सकती हैं?
किस प्रकार की फाइलें fopen () का उपयोग करके नहीं खोली जा सकती हैं?
A.
.txt
B.
.bin
C.
.c
D.
none of the mentioned
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