Which are the modes in which a file can be opened ?
Input mode, output mode
Read and write mode
Entry and exit mode
In and out mode
Which are the parameters of a write( ) method ?
Size of the block, filename
Pointer of the block, size of the block
Filename, pointer of the block
File name, file pointer
What may happen when the disc space is filled for a new file ?
Can extend space using a function
Disc space full warning
Error
Program will hang
Which of the following is a member of istream class ?
%
( )
>>
<<
What is needed to transfer a string to a file ?
Member variable of stream class
Member object of ofstream class
Object of stream class
Function of ofstream class
Which member records information on the status of a file currently using ?
Readstate( )
Getstate( )
State( )
Rdstate( )
Which of the following operator helps to output text to the file ?
&&
>!
Which stream supplies data to the program ?
Data stream
Input stream
Program stream
Ifstream
What is the alternative name for a flow of data ?
Stream
File
Array
Structure
Which method is used to find the length of a string ?
Strlen( )
Size( )
Length( )
Getlength( )