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 - FILE PROCESSING
FILE PROCESSING
00:00:00
English
Hindi
Question No# :
01
out of 22
The first and second arguments of fopen are ______
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# :
02
out of 22
fseek() should be preferred over rewind() mainly because
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# :
03
out of 22
In C language, FILE is of which data type?
C भाषा में, FILE किस डेटा प्रकार की है?
A.
int
B.
char *
C.
struct
D.
None of the mentioned
Question No# :
04
out of 22
EOF is an integer type defined in stdio. h and has a value
EOF stdio में परिभाषित एक पूर्णांक प्रकार है। हाथ का एक मूल्य है
A.
1
B.
0
C.
NULL
D.
– 1
Question No# :
05
out of 22
What is the function of 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
Question No# :
06
out of 22
Choose the correct difference between getc() and 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()
Question No# :
07
out of 22
What is the function of the mode ‘ 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
Question No# :
08
out of 22
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# :
09
out of 22
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)
Question No# :
10
out of 22
FILE is of type ______
फ़ाइल ______ प्रकार की है
A.
int type
B.
char * type
C.
struct type
D.
None of the mentioned
Question No# :
11
out of 22
What does fp point to in the program?
int main()
{
FILE *fp;
fp=fopen("trial", "r");
return 0;
}
What does fp point to in the program?
int main()
{
FILE *fp;
fp=fopen("trial", "r");
return 0;
}
A.
The first character in the file
The first character in the file
B.
A structure which contains a char pointer which points to the first character of a file
A structure which contains a char pointer which points to the first character of a file
C.
The name of the file
The name of the file
D.
The last character in the file
The last character in the file
Question No# :
12
out of 22
In a multilist organisation
In a multilist organisation
A.
records that have an equivalent value for a given secondary index item are linked together to form a list
records that have an equivalent value for a given secondary index item are linked together to form a list
B.
records are loaded in ordered sequence defined by collating sequence by content of key
records are loaded in ordered sequence defined by collating sequence by content of key
C.
records are directly accessed by records key field
records are directly accessed by records key field
D.
none of the above
none of the above
Question No# :
13
out of 22
If a file is open in ‘write’ mode, then
यदि फ़ाइल ‘राइट’ मोड में खुली है, तो
A.
If it does not exist, an error is returned
यदि यह मौजूद नहीं है, तो एक त्रुटि वापस आ जाती है
B.
If it does not exist, it is created
यदि यह मौजूद नहीं है, तो यह बनाया जाता है
C.
If it exists, then data is written at the end
यदि यह मौजूद है, तो डेटा अंत में लिखा गया है
D.
If it exists, error is returned
यदि यह मौजूद है, तो त्रुटि वापस आ जाती है
Question No# :
14
out of 22
getc() returns EOF when
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# :
15
out of 22
The two type of file structures existing in VSAM file are
The two type of file structures existing in VSAM file are
A.
Key sequenced structures, entry sequenced structures
Key sequenced structures, entry sequenced structures
B.
Key sequenced structure, exit sequenced structures
Key sequenced structure, exit sequenced structures
C.
Entry sequenced structures, exit sequenced structures
Entry sequenced structures, exit sequenced structures
D.
None of the above
None of the above
Question No# :
16
out of 22
The value of EOF is_____
EOF का मान _____ है
A.
-1
B.
0
C.
1
D.
10
Question No# :
17
out of 22
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
Question No# :
18
out of 22
Which of the following true about 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
Question No# :
19
out of 22
What is the purpose of getc()?
What is the purpose of getc()?
A.
read a character from STDIN
read a character from STDIN
B.
read a character from a file
read a character from a file
C.
read all file
read all file
D.
read file randomly
read file randomly
Question No# :
20
out of 22
If there is any error while opening a file, fopen will return
यदि फ़ाइल खोलते समय कोई त्रुटि है, तो फ़ोपेन वापस आ जाएगी
A.
Nothing
B.
EOF
C.
NULL
D.
Depends on compiler
Question No# :
21
out of 22
Which function will return the current file position for stream?
कौन सा फ़ंक्शन स्ट्रीम के लिए वर्तमान फ़ाइल स्थिति लौटाएगा?
A.
fgetpos()
B.
fseek()
C.
ftell()
D.
fsetpos()
Question No# :
22
out of 22
Which type of files can’t be opened using fopen()?
किस प्रकार की फाइलें fopen () का उपयोग करके नहीं खोली जा सकती हैं?
A.
.txt
B.
.bin
C.
.c
D.
none of the mentioned
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