ExamVeda
Login
Home
91
What will be the output of the following C# code?
static void Main(string[] args)
{
    m();
    Console.ReadLine();
}
static void m()
{
    Console.WriteLine("HI");
    m();
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
92
When does a structure variable get destroyed?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
93
Select wrong statement about destructor in C#?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
94
What will be the Correct statement of the following C# code?
public class maths
{
    public int x;
    public virtual void a()
    {

    }

}
public class subject : maths
{
    new public void a()
    {

    }

}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
95
Which of the following statements correctly define about the implementation of interface?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
96
What will be the output of the following C# code?
{
    struct abc
    {
        public int i;
    }  
    class Program
    {
        static void Main(string[] args)
        {
            sample a = new sample();
            a.i = 10;
            fun(ref a);
            Console.WriteLine(a.i);
        }
        public static voidn fun(ref sample x)
        {
            x.i = 20; 
            Console.WriteLine(x.i);
        }
    }
}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
97
What will be the output of the following C# code?
class maths 
{
    int fact(int n) 
    {
        int result;
        if (n == 1)
        return 1;
        result = fact(n - 1) * n;
        return result;
    }
} 
class Output 
{
    static void main(String args[]) 
    {
        maths obj = new maths() ;
        Console.WriteLine(obj.fact(1));
    }
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
98
Choose the correct statement among the following which supports the fact that C# does not allow the creation of empty structures?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
99
Correct method to define + operator is?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
100
What will be the Correct statement in the following C# code?
interface a1
{
    void f1();
    void f2();
}
class a :a1
{ 
    private int i;
    void a1.f1()
    {
    }
 }
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board