ExamVeda
Login
Home
41
What will be the output of the following C# code snippet?
static void Main(string[] args)
{
    StringBuilder sb = new StringBuilder("hello world");
    sb.Insert(6, "good");
    Console.WriteLine(sb);
    Console.ReadLine();
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
42
Choose the output returned when read() reads the character from the console?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
43
Which of the given stream methods provide access to the output console by default in C#.NET?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
44
What will be the output for following input from the console as a character?
static void Main(string[] args)
{
    Console.WriteLine("what is your name?");
    char s;
    s = Convert.ToChar(Console.ReadLine());
    Console.WriteLine("how are you: "+s);
    Console.Read();
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
45
Which of the following statement is correct?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
46
Choose the object of TextReader class.
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
47
Which of the following is the correct statement about inspecting an attribute in C#.NET?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
48
Choose the output returned when an error condition is generated while read() reads from the console.
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
49
Which among the following methods are used to write characters to a string?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
50
The correct method to pass a parameter to an attribute is?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board