ExamVeda
Login
Home
81
A single try block must be followed by which of these?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
82
Choose the correct statement about properties describing the indexers?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
83
Which of these exceptions handles the divide by zero error?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
84
Choose the correct statements about write-only properties in C#.NET?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
85
Select the correct statement about an Exception?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
86
What will be the output of the following C# code?
class Output 
{
    public static void main(String args[]) 
    {

        try 
        {
            int a = 9;
            int b = 5;
            int c = a / b - 5;
            Console.WriteLine("Hello");
        }
        catch(Exception e) 
        {
            Console.WriteLine("C");
        } 
        finally 
        {
            Console.WriteLine("sharp");
        } 
    }
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
87
When is no exception thrown at runtime then who will catch it?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
88
Which among the following is considered as .NET Exception class?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
89
What will be the output of the following C# code?
public  static void Main(string[] args)
{
    try
    {
        int a, b, c = 5;
        b = 0;
        a = c / b;
        Console.WriteLine("A");
    }
    catch (ArithmeticException e)
    {
        int c = 5;
        int i = 10;
        int z = 2 * c - i;
        Console.WriteLine("B");
        Console.WriteLine(z);
    }
    Console.ReadLine();
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
90
What will be the output of the following C# code?
static void Main(string[] args)
{            
    try 
    {
        Console.WriteLine("csharp" + " " + 1/Convert.ToInt32(0));
    }
    catch(ArithmeticException e) 
    {
        Console.WriteLine("Java");        	
    }
    Console.ReadLine();
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board