Contents

Which of the following stream, data can be read and write to files character by character?
a) single character stream
b) double character stream
c) both a & b                       
d) none of these

a

Which function is used to read data character by character into files?
a) getche ()                           
b) get ()
c) put ()                                 
d) string ()

b

Which function is used to write data character by character into files?
a) getche ()                           
b) get ()
c) put ()                                 
d) string ()

c

Which of the following stream reads input from or writes output to associated string is called?
a) if stream                          
b) of stream
c) fstream                             
d) 
string stream

d

Which function writes the content of stream to physical device?
a) int flush()                         
b) void flush()
c) flush()                                               
d) none of these

b

Which of the following function return integer as -1 when end of file?
a) int read()                          
b) void read()
c) void readbyte()               
d) int readbyte ()

d