View Count: 0
Duration: 30 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 35 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 40 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 25 mins
Accessed date:
Not Yet Viewed
View Count: 0
Duration: 20 mins
Accessed date:
Not Yet Viewed
Post your comment / feedback here
 
 

Be the first one to comment about this video

Question No: 1 of 26
What is the Order Of Execution of Constructor in Child and Parent Classes when the object of Child class is created? 
Options:
  1. First Parent and then Child
  2. Child and the Parent
  3. Only Child
  4. Only Parent
View Answer/Explanation:
a
Explanation:

Question No: 2 of 26
Can we use 'base' and 'this' in the same Constructor? 
Options:
  1. Yes
  2. No
View Answer/Explanation:
b
Explanation:

Question No: 3 of 26
What is the advantage of inheritance? 
Options:
  1. Generalization
  2. Extensibillity
  3. Reusability
  4. All the above
View Answer/Explanation:
d
Explanation:

Question No: 4 of 26
Does DOTNET support Multiple Implementation Inheritance? 
Options:
  1. Yes
  2. No
View Answer/Explanation:
b
Explanation:

Question No: 5 of 26
What will be the output of the program?
class CA
{
     protected  int  M1=10;
}

class CB : CA
{

     void Foo()
     {
        CA a = new CA();
        Console.WriteLine(a.M1); 
     }
} 
Options:
  1. Compiletime error
  2. Runtime Error
  3. 10
  4. 0
View Answer/Explanation:
a
Explanation:

Question No: 6 of 26
Inheritance between two classes is based on which of the relationship? 
Options:
  1. Is a
  2. Has a
  3. Instance of
  4. Type of
View Answer/Explanation:
a
Explanation:

Question No: 7 of 26
Protected members of base class are accessible within the same class and in __________ class. 
Options:
  1. Non-derived and Derived
  2. Only in Derived
  3. Non derived.
  4. None of the above.
View Answer/Explanation:
b
Explanation:

Question No: 8 of 26
class Parent
{
     public int A1;
     private int A2;
     protected int A3;   
} 

class Child: Parent
{
     public int B1;
}
When an object of CChild is created how many data members are allocated memory? 
Options:
  1. 3
  2. 2
  3. 4
  4. 1
View Answer/Explanation:
c
Explanation:

Question No: 9 of 26
class CA
{
    public int PubA;
    private int PriA;
    protected int ProA;
    public CA(int a, int b, int c)
    {
        this.PriA = a;
        this.ProA = b;
        this.PubA = c;
    }
}
class CB : CA
{
    public int pubB;
    public CB() : _____
    { }
}
Fill in the above blank 
Options:
  1. base()
  2. this()
  3. this(1,2,3)
  4. base(1,2,3)
View Answer/Explanation:
d
Explanation:

Question No: 10 of 26
class CA
{
    public CA()
    {
        Console.WriteLine("In CA Default");
    }

    public CA(int a, int b, int c) 
    {
        Console.WriteLine("In CA Parameterized");
    }
}

class CB : CA
{
    public CB() 
    {
        Console.WriteLine("In CB Default");
    }
    public CB(int a, int b, int c, int d)
    {
        Console.WriteLine("In CB Parameterized");
    }    
}

class Program
{
    static void Main(string[] args)
    {
        CB a = new CB(1,2,3,4);
    }
}
What is the o/p? 
Options:
  1. In CA Default In CA Parameterised
  2. In CA Default In CA Parameterized In CB Default In CB Parameterized
  3. In CA Default In CB Parameterized
  4. In CA Default In CA Parameterized In CB Parameterized
View Answer/Explanation:
c
Explanation:

  1