File Handling
Description: File Handling | |
Number of Questions: 15 | |
Created by: Sanjiv Memon | |
Tags: File Handling Java/Oracle /C/C++ |
Which of the following is the disadvantage of binary data files?
To open the file for reading purpose, we have to create an object of ____________ class.
Which of the following member functions is used to get a single character from a file?
Which of the options shows the correct steps to process a file in C++ program?
Which of the following functions give the current position of the file pointer?
Which of the following is the invalid open mode of a file in C++?
Normally a file is opened with positioning the cursor at the beginning of the file. But which mode opens the file by positioning the cursor at the end of file?
Which statement takes the file pointer to the beginning of the file?
Which of the following file opening modes shows error, if the file does not already exist?
____________ is used when we want to access the streams of bytes from memory.
How to check whether a file stream f1 was successfully opened or not?
Which method can be used to check the status after read/write operation?
Which of the following is not used for reading a text file?
Which of the following is the default mode for a open() member function of fstream class?
How can the integer variable n be displayed in octal format in C++?