Vidyalelo
C# Programming · all questions

File Handling and Input Output in C Sharp
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

112

Questions

4/6

Page

Pick an option on a question to see the right answer and solution.

Select the method used to write single byte to a file?

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:

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?

Select an option to see the answer and solution.

To apply an attribute to an Assembly, the correct way of implementation is?

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.

Select an option to see the answer and solution.

Which among the following classes are used to perform the character based file operations?

Select an option to see the answer and solution.

Name the method which returns integer as -1 when the end of file is encountered.

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?

Select an option to see the answer and solution.

Attributes could be applied to . . . . . . . .

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?

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?

Select an option to see the answer and solution.

Name the exception thrown by read() on failure.

Select an option to see the answer and solution.

Name the method/methods used to read byte streams from the file?

Select an option to see the answer and solution.

The [Serializable()] attributes gets inspected at . . . . . . . .

Select an option to see the answer and solution.

Select the method which writes the contents of the stream to the physical device.

Select an option to see the answer and solution.

What is the output returned by Console if ReadLine() stores I/O 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?

Select an option to see the answer and solution.

Which among the following cannot be a target for a custom attribute?

Select an option to see the answer and solution.

Choose the class on which all stream classes are defined?

Select an option to see the answer and solution.

Which of these classes is used for input and output operation when working with bytes?

Select an option to see the answer and solution.