Contents

Which function is used in C++ to get the current position of file pointer in a file?
a) tell_p()                    
b) get_pos()
c) get_p()                    
d) tell_pos ()

a

Which function is used to reposition the file pointer?
a) move()                    
b) seekg()
c) get_p()                    
d) go_p ()

b

What is the correct format for closing file function?
a) void close();
b) int close();
c) void close[];
d) int close []

a

bof () and eof () Functions


Which of the following functions are used to set pointers to the beginning of file?
a) bof ()                                   
b) eof ()
c) both a & b               
d) dof ()

a

What does bof () stands for?
a) binary file               
b) beginning-of-file
c) bright file                
d) none of these

b