ExamVeda
Login
Home
81
Which statements among following are correct?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
82
Which of these can be used to fully abstract a class from its implementation?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
83
Select the class visibility modifiers among the following:
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
84
What will be the output of the following C# code?
namespace ConsoleApplication4
{   
    abstract class A 
    {
        int i;
        public  abstract void display();
    }    
    class B: A 
    {
        public  int j;
        public override void display() 
        {
            Console.WriteLine(j);
        }
    }    
    class Program
    {
        static void Main(string[] args)
        {
            B obj = new B();
            obj.j = 2;
            obj.display();
            Console.ReadLine();
        }
    }
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
85
What will be the output of the following C# code?
class maths
{
    static maths()
    {
        int s = 8;
        Console.WriteLine(s);
    }
    public  maths(int f)
    {
        int h = 10;
        Console.WriteLine(h);
    }
}
class Program
{
    static void Main(string[] args)
    {
        maths p = new maths(0);
        Console.ReadLine();
    }
}
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?
enum days:int
{
    sunday = -3,
    monday,
    tuesday
}
Console.WriteLine((int)days.sunday);
Console.WriteLine((int)days.monday);
Console.WriteLine((int)days.tuesday);
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
87
What will be the output of the following C# code?
static void Main(string[] args)
{
   int X = 6,Y = 2;
   X  *= X / Y;
   Console.WriteLine(X);
   Console.ReadLine();
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
88
Which of the following is the correct way of implementing an interface addition by class maths?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
89
What does the following C# code signify?
class a
{
 
 
 
}
class b : a
{
    variable declaration;
    method declaration;
}
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
90
What will be the Correct statement in the following C# code?
interface abc
{
    String FirstName
    {
        get;
        set;
    }
   String LastName
   {
       get;
       set;
   }
   void print();
   void stock();
   int fun();
}
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board