95.
Select the correct statement about Attributes used in C#.NET?

96.
In the given constructor declaration for character based file operation what does 'path' and 'bool specifies?
StreamWriter(string path, bool append)

98.
What will be the output of the following C# code snippet?
static void Main(string[] args)
{
    String a ="i love iostream";
    Console.WriteLine(a.IndexOf('i') + " " + a.IndexOf('e') + " " + a.LastIndexOf('i') + " " + a.LastIndexOf('e'));
    Console.ReadLine();
}

99.
What will be the output of the following C# code?
static void Main(string[] args)
{
    int a = 10, b = 0;
    int result;
    Console.Out.WriteLine("This will generate an exception.");
    try
    {
        result = a / b; // generate an exception
    }
    catch (DivideByZeroException exc)
    {
        Console.Error.WriteLine(exc.Message);
    }
    Console.ReadLine();
}

Read More Section(File Handling and Input Output in C Sharp)

Each Section contains maximum 100 MCQs question on File Handling and Input Output in C Sharp. To get more questions visit other sections.