Contents

What is the extension of text file?
a) .doc   
b) .docx
c) .bin    
d) .text

d

Which of the following mode flag is used for output/writing operation?
a) ios:: out                           
b) ios:: in
c) ios:: binary                      
d) ios:: ate

a

Which of the following mode flag is used for open in binary operation?
a) ios:: out                            
b) ios:: in
c) ios:: binary     
d) ios:: ate

c

Which of the following is not used as a file opening mode?
a) ios:: out                            
b) ios:: in
c) ios:: trunc                        
d) ios:: ate

c

Which of the following is not used to seek file pointer?
a) ios:: set                            
b) ios:: in
c) ios:: trunc                        
d) ios:: ate

c

Which of the following is used to move the file pointer to start of a file?
a) ios:: set                             
b) ios:: beg
c) ios:: trunc                        
d) ios:: ate

b