Select the method used to write single byte to a file?
A. Write()
B. Wrteline()
C. WriteByte()
D. All of the mentioned
Select an option to see the answer and solution.
Choose the filemode method which is used to create a new output file with the condition that the file with same name if exists will destroy the old file:
A. FileMode.CreateNew
B. FileMode.Create
C. FileMode.OpenOrCreate
D. FileMode.Truncate
Select an option to see the answer and solution.
Which method of character stream class returns the numbers of characters successfully read starting at count?
A. int Read()
B. int Read(char[] buffer, int index, int count)
C. int ReadBlock(char[ ] buffer, int index, int count)
D. none of the mentioned
Select an option to see the answer and solution.
To apply an attribute to an Assembly, the correct way of implementation is?
A. [AssemblyInfo: AssemblyDescription ("Csharp")]
B. [assembly: AssemblyDescription("Csharp")]
C. [AssemblyDescription("Csharp")]
D. (Assembly:AssemblyDescription("Csharp")]
Select an option to see the answer and solution.
Choose the filemode method which is used to create a new output file with the condition that the file with same name must not exist.
A. FileMode.CreateNew
B. FileMode.Create
C. FileMode.OpenOrCreate
D. FileMode.Truncate
Select an option to see the answer and solution.
Which among the following classes are used to perform the character based file operations?
A. StreamReader
B. InputReaderWriter
C. OutputStream
D. All of the mentioned
Select an option to see the answer and solution.
Name the method which returns integer as -1 when the end of file is encountered.
A. int read()
B. int ReadByte()
C. void readbyte()
D. none of the mentioned
Select an option to see the answer and solution.
Which of these is a method used to clear all the data present in output buffers?
A. clear()
B. flush()
C. fflush()
D. close()
Select an option to see the answer and solution.
Attributes could be applied to . . . . . . . .
A. Method
B. Class
C. Assembly
D. All of the mentioned
Select an option to see the answer and solution.
Which of these method/methods are used to read block or array of bytes from the file?
A. Read()
B. ReadByte()
C. ReadLine()
D. Readkey()
Select an option to see the answer and solution.
Which of the classes provide the operation of reading from and writing to the console in C#.NET?
A. System.Array
B. System.Output
C. System.ReadLine
D. System.Console
Select an option to see the answer and solution.
Name the exception thrown by read() on failure.
A. InterruptedException
B. SystemException
C. SystemInputException
D. I/O Exception
Select an option to see the answer and solution.
Name the method/methods used to read byte streams from the file?
A. ReadByte()
B. Read
C. Readkey()
D. None of the mentioned
Select an option to see the answer and solution.
The [Serializable()] attributes gets inspected at . . . . . . . .
A. compile time
B. run time
C. design time
D. linking time
Select an option to see the answer and solution.
Select the method which writes the contents of the stream to the physical device.
A. fflush()
B. void fflush()
C. void Flush()
D. flush()
Select an option to see the answer and solution.
What is the output returned by Console if ReadLine() stores I/O error?
A. 1
B. 0
C. False
D. I/O EXCEPTION ERROR
Select an option to see the answer and solution.
Which of these is a method used to clear all the data present in output buffers?
A. clear()
B. flush()
C. fflush()
D. close()
Select an option to see the answer and solution.
Which among the following cannot be a target for a custom attribute?
A. Enum
B. Event
C. Interface
D. Namespace
Select an option to see the answer and solution.
Choose the class on which all stream classes are defined?
A. System.IO.stream
B. Sytem.Input.stream
C. System.Output.stream
D. All of the mentioned
Select an option to see the answer and solution.
Which of these classes is used for input and output operation when working with bytes?
A. InputStream
B. Reader
C. Writer
D. All of the mentioned
Select an option to see the answer and solution.