Question
a.
Memory (RAM) is limited in any computer.
b.
A file is stored on Hard Disk which can store Gigabytes of data.
c.
File stored on Hard Disk is safe even if PC is switched off. But Memory or RAM contents are cleared when PC is off.
d.
All of the above
Posted under C Programming
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is the need for a File when you can store anything in memory?
Similar Questions
Discover Related MCQs
Q. EOF is an integer type defined in stdio.h and has a value ____________
View solution
Q. _____removes the named file, so that a subsequent attempt to open it will fail.
View solution
Q. Which is true about what getc returns?
View solution
Q. Select text file in which number will take.
View solution
Q. While calling the fprintf() function in the format string conversion specifier %s can be used to write a character string in capital letters.
View solution
Q. A text stream is an ordered sequence of characters composed into lines, each line consisting of zero or more characters plus a terminating new-line character.
View solution
Q. A file written in text mode can be read back in binary mode.
View solution
Q. In fopen(), the open mode "wx" is sometimes preferred "w" because
1) Use of wx is more efficient.
2) If w is used, old contents of file are erased and a new empty file is created. When wx is used, fopen() returns NULL if file already exists.
View solution
Q. Which of the following is data type of file pointer?
View solution
Q. stderr, stdin, stdout are FILE pointers.
View solution
Q. Offset used in fseek() function call can be a negative number.
View solution
Q. We should not read after a write to a file without an intervening call to fflush(), fseek() or rewind().
View solution
Q. Select a function which is used to write a string to a file.
View solution
Q. A data of the file is stored in a
View solution
Q. getc() returns EOF when
View solution
Q. When fopen() is not able to open a file, it returns
View solution
Q. It is not possible to combine two or more file opening mode in open () method.
View solution
Q. If there is any error while opening a file, fopen will return?
View solution
Q. Which type of files can't be opened using fopen()?
View solution
Q. FILE reserved word is?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!
Java Programming
Level up your coding skills with our Java Programming MCQs. From object-oriented...
Cyber Security
Understand the fundamentals of safeguarding digital assets with our Cyber Security...