Home » Aptitude Questions and Answers » C# Aptitude Questions and Answers

C# Inheritance Aptitude Questions and Answers | Set 2

C# Inheritance Aptitude Questions | Set 2: This section contains aptitude questions and answers on C# Inheritance.
Submitted by Nidhi, on April 14, 2020

1) In the context of inheritance, a subclass is also known as?
  1. Base class
  2. Parent class
  3. Child class
  4. Derived class

Options:

  1. Only B
  2. Only C
  3. A and B
  4. C and D

2) There are the following options are given below, which of them should be used to implement a 'kind of' relationship between two entities?
  1. Containership
  2. Encapsulation
  3. Inheritance
  4. Polymorphism

Options:

  1. Only A
  2. Only B
  3. Only C
  4. Only D

3) There are following options are given below, which of them should be used to implement a 'Has a' relationship between two entities?
  1. Containership
  2. Encapsulation
  3. Inheritance
  4. Polymorphism

Options:

  1. Only A
  2. Only B
  3. Only C
  4. Only D

4) In the case of inheritance, which members of the parent class can be, access to the child class members?
  1. Private
  2. Protected
  3. Static
  4. Public

Options:

  1. Only A
  2. Only B
  3. A and C
  4. B and D

5) There are following statements are given below, which of them are correct about inheritance in C#.NET?
  1. A child class object contains the entire parent class member.
  2. Inheritance can extend the parent class functionality.
  3. Inheritance cannot extend the parent class functionality.
  4. A child class may not be able to access all the parent class members.

Options:

  1. Only A
  2. Only B
  3. Only C
  4. A, B and D






Comments and Discussions

Ad: Are you a blogger? Join our Blogging forum.





Languages: » C » C++ » C++ STL » Java » Data Structure » C#.Net » Android » Kotlin » SQL
Web Technologies: » PHP » Python » JavaScript » CSS » Ajax » Node.js » Web programming/HTML
Solved programs: » C » C++ » DS » Java » C#
Aptitude que. & ans.: » C » C++ » Java » DBMS
Interview que. & ans.: » C » Embedded C » Java » SEO » HR
CS Subjects: » CS Basics » O.S. » Networks » DBMS » Embedded Systems » Cloud Computing
» Machine learning » CS Organizations » Linux » DOS
More: » Articles » Puzzles » News/Updates


© https://www.includehelp.com some rights reserved.