ExamVeda
Login
Home
91
Choose the object/objects defined by the Textwriter class.
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
92
Which of the following is a type of stream in C#?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
93
The method used to write a single byte to an output stream?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
94
Which of the following cannot further inspect the attribute that is once applied?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
95
Select the correct statement about Attributes used in C#.NET?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
96
In the given constructor declaration for character based file operation what does 'path' and 'bool specifies?
StreamWriter(string path, bool append)
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
97
Choose the stream class method which is used to close the connection?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
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();
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
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();
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
100
Which of these classes is used to read and write bytes in a file?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board