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

6/6

Page

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

What will be the output of the following C# code snippet?
static void Main(string[] args)
{
    Console.Write("c");
    Console.Write("sharp" );
    Console.ReadLine();
}

Select an option to see the answer and solution.

Which of the following is used to perform all input & output operations in C#?

Select an option to see the answer and solution.

Which of these data types is returned by every method of OutputStream?

Select an option to see the answer and solution.

Which of these method used to read strings from the console?

Select an option to see the answer and solution.

The advantages of using character stream based file handling are?

Select an option to see the answer and solution.

Select the statements which define the stream.

Select an option to see the answer and solution.

Which property among the following represents the current position of the stream?

Select an option to see the answer and solution.

The correct way to apply the custom attribute called Employer which receives two arguments – name of the employee and employeeid is?

Select an option to see the answer and solution.

Select the action of the method long seek()?

Select an option to see the answer and solution.

Which among the following is the correct form of applying an attribute?

Select an option to see the answer and solution.

Which of these methods are used to read single character from the console?

Select an option to see the answer and solution.

Which of these is a method used for reading bytes from the file?

Select an option to see the answer and solution.