File Handling (NCO)
Description: datafile handling | |
Number of Questions: 15 | |
Created by: Vaibhav Pathak | |
Tags: Data File Handling File Handling |
Which of the following files in C++ is a file that contains information in the same format in which the information is held in the memory?
Which of the following classes in C++ supports output operations and contains open() function with default output mode?
Which of the following streams in C++ receives data from a program and writes the data to a monitor that it receives from the program?
Which of the following codes is used for relative position in get pointer and is used to place the file pointer, and read the contents from the beginning of a file?
Which of the following file modes is used in file handling, if an already existing file is to be opened for output operations and its previous contents are to be deleted by a new one?
Which of the following operators in C++ is called as an insertion operator that inserts data into an appropriate stream?
Which of the following program codes is correct for opening a file in append mode that sets the write pointer to end of a file?
Which of the following steps is the first step to use files in C++?
Which of the following stream classes is used in C++ to perform input and output operations on to a data file?
Which of the following functions in data file handling moves the file put pointer to a location specified by its arguments?
Which of the following stream classes acts as base class in the hierarchy of file stream classes?
What would be the output of the following C++ code?
textfile.seekp(5, ios::beg);
Which of the following functions is used to write the contents of the binary file associated with ofstream object?
Which of the following devices is connected to the input stream in C++ from which data is extracted and provided to the program for manipulation?
Consider the following C++ code:
textfile.open(sample.dat, ios::in);
Where is the get pointer placed after the execution of the above code?