Contents

By default, all the files in C++ are opened in……… mode.
a) text                         
b) binary
c) VTC                        
d) none of these

a

The file, which is not readable by human, but readable by machines is called……
a) binary file               
b) text file
c) image file                
d) video file

a

Which of the following files are used to store large amount of data?
a) binary file               
b) text file
c) image file                
d) video file

a

Which header file is required to use file I/O operations?
a) <ifstream>               
b) <fstream>
c) <iostream>              
d) all of these

b

Which of the following function is used to open the file in file handling?
a) new ()                                  
b) open ()
c) save ()                                 
d) none of these

b

What is the return type open () method?
a) int                           
b) char
c) boolean                   
d) float

c