InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 51. |
Definition of homologous Chromosomes? |
|
Answer» The morphologically, genetically and structurally essentially identical chromosomes present in a diploid cell are called homologous chromosomes. |
|
| 52. |
Definition of back cross. |
|
Answer» The cross of Fx progeny with any of the parents, irrespective of being dominant or recessive, is called back cross. |
|
| 53. |
Name the term for genes located on nonhomologous region of Y chromosomes. |
|
Answer» The genes located on non-homologous region of Y chromosomes are known as holandric genes or Y-linked genes. |
|
| 54. |
Definition of linkage. |
|
Answer» Linkage is defined as the tendency of the genes to be inherited together because they are present in the same chromosome. |
|
| 55. |
Give one example of complete linkage. |
|
Answer» X chromosome of Drosophila males show complete linkage. |
|
| 56. |
What is the number of linkage groups found in honey bee? |
|
Answer» The number of linkage group corresponds to the haploid number of chromosomes. Honey bee’s haploid chromosomes number is 16 and thus it has 16 linkage groups. |
|
| 57. |
What are linkage groups? |
|
Answer» The genes present on the same chromosome and inherited together are called linkage group. |
|
| 58. |
Types of traits: [Sickle-cell anaemia, Flower colour of Mirabelis jalapa, Coat colour of cattle, Human blood groups, Widow’s peak, Height in human beings.]Column AColumn B(1) Co-dominance——————(2) Incomplete dominance——————(3) Multiple allelism——————(4) Pleiotropy——————(5) Polygenes——————(6) Autosomal dominance—————— |
||||||||||||||
Answer»
|
|||||||||||||||
| 59. |
Down’s syndrome is represented by ………………. (a) n + 1 (b) 2n + 1 (c) 3n + 1 (d) n – 1 |
|
Answer» Correct answer is (b) 2n + 1 |
|
| 60. |
The person with Turner’s syndrome has ………………. (a) 45 autosomes and X sex chromosome (b) 44 autosomes and XYY sex chromosome (c) 45 autosomes and Y chromosome (d) 44 autosomes and X chromosome |
|
Answer» Correct answer is (d) 44 autosomes and X chromosome |
|
| 61. |
Genetic Disorders [Turner’s syndrome, Sickle-cell anaemia, Thalassemia, Edward’s syndrome, Klinefelter’s syndrome, Down’s syndrome]Column AColumn B(A) Autosomal disorder—————–(B) Sex chromosomal disorder—————–(C) Mendelian disorder—————– |
||||||||
Answer»
|
|||||||||
| 62. |
Which of the following is the process of creating new classes from an existing class ?(a) Polymorphism(b) Inheritance(c) Encapsulation(d) super class |
|
Answer» (b) Inheritance |
|
| 63. |
Mention any two types of inheritance. |
Answer»
|
|
| 64. |
Mention any one advantage of inheritance? |
|
Answer» The one advantage of inheritance is reusability. |
|
| 65. |
Is inheritance possible in c? |
|
Answer» No, because it doesn’t support object oriented concept. |
|
| 66. |
What is private access specifier? |
|
Answer» The private access specifier means “Public and Protected Parts of base class remain Private in derived class”. |
|
| 67. |
Write a Python program to demonstrate multiple inheritance. Consider 3 classes with the following description.Student class has 3 protected data members roll number, mark1 and mark2 of type integer. It has a get() function to get these details from the user. Sports class has a protected data member sports marks of type integer and a function getsm() to get the sports mark.Statement class uses the marks from Student class and the sports marks from the Sports class to calculate the total and average and displays the final result |
|
Answer» class student(object): # constructor to create an object def init (self): self.mo=0 self.m1=0 self.m2=0 def get(self): self.mo=int(raw_input(“Enter the Roll no:”)) print “Enter 2 marks” self.m1=int(raw_input(“Markl?”)) self.m2=int(raw_input(“Mark2 ?”)) classsports(object): # Sports mark def_init_(self): self.sm=0 def getsm(self): self.sm=int(raw_input(“Enter the sports mark:”)) class statement(student,sports): def_init_(self): super(statement,self)._init_() def display (self): tot=(self.ml+self.m2+self.sm); avg=tot/3; print“\n\n\tRoll No. : ”, self.mo,“\n\tTotal :”,tot print“\tAverage : ”,avg obj=statement() obj.get() obj.getsm() obj. display() |
|
| 68. |
What is the use of public access specifier? |
|
Answer» The private members of a base class cannot be inherited and protected members remain protected in a derived class. |
|
| 69. |
What is public access specifier? |
|
Answer» It means “public parts of base class remain public and protected parts of base class remain protected for derived class”. |
|
| 70. |
What is the use of protected access specifier? |
|
Answer» The private member of a base class cannot be inherited to the derived class and protected member of a base class remains protected in a derived class. |
|
| 71. |
What is the difference between public and private access specifier? |
|
Answer» In public access mode, protected members of base class remain protected in a derived class. In private access mode, protected members of a base class become private members in a derived class. And the private members of a base class cannot be inherited in both the access mode. |
|
| 72. |
What is multiple inheritances? |
|
Answer» When a class inherit properties from more than one class is known as multiple inheritance. |
|
| 73. |
class x{int a;public :x() {}};class y{ x x1;public : y(){} };class z : public y, x{ intb;public:z(){}} z1;What is the order of constructor for object z1 to be invoked?(a) z, y, x, x(b) x, y, z, x (c) y, x, x, z (d) x, y, z |
|
Answer» (c) y, x, x, z |
|
| 74. |
What is hybrid inheritance? Give an example. |
|
Answer» It is the combination of hierarchical and multilevel inheritance. For example, The derived class D derive from the classes B and C whereas both the classes B and C are derived from base class A. |
|
| 75. |
What is hybrid inheritance? |
|
Answer» It is the combination of hierarchical and multilevel inheritance. |
|
| 76. |
Write the names of all member functions accessible from the object of class author. |
|
Answer» Member functions that can be accessed are: 1. public member functions of branch have_data(); give_data(); 2. public member functions of author: getdata(); putdata(); |
|
| 77. |
What is a base class? |
|
Answer» A class that is used as the basis for inheritance is called a superclass or base class. |
|
| 78. |
Write the output of the following program. |
|
Answer» Output: I am class A I am class B X = 30 Y = 20 Bye Bye Bye |
|
| 79. |
A class that inherits from a superclass is called ………(a) derived class(b) super class(c) base class(d) parent class |
|
Answer» (a) derived class |
|
| 80. |
The ……… are invoked in reverse order.(a) constructor(b) destructor (c) pointer(d) operator |
|
Answer» (b) destructor |
|
| 81. |
What is hierarchical inheritance? Give an example. |
|
Answer» When the properties of one class are inherited by more than one class, it is called hierarchical inheritance. For example, class B, C and D are derived from base class A. |
|
| 82. |
Write the names of all members accessible from member functions of class author. |
||||
Answer»
|
|||||
| 83. |
What is hierarchical inheritance? |
|
Answer» When the properties of one class are inherited by more than, one class, it is called hierarchical inheritance. |
|
| 84. |
Write the output of the following program.return 0;} |
|
Answer» Output: My profession is: Teacher My age is: 20 I can walk I can talk. I can teach computer. My profession is: Footballer My age is: 19 I can walk I can talk. I can play football. |
|
| 85. |
……… pointer is a constant pointer that holds the memory address of the current object.(a) member function (b) this pointer (c) comma operator(d) data member |
|
Answer» (b) this pointer |
|
| 86. |
Write the names of data members accessible from the object of class author. |
|
Answer» The data members that can be accessed is bphone[2][10]. |
|
| 87. |
Why derived class is called power packed class? |
|
Answer» Multilevel Inheritance: In multilevel inheritance, the constructors will be executed in the order of inheritance. Multiple Inheritance: If there are multiple base classes, then it starts executing from the left most base class. |
|
| 88. |
When a derived class inherits only from one base class, it is known as ………(a) multiple inheritance(b) multilevel inheritance(c) hierarchical inheritance (d) single inheritance |
|
Answer» (d) single inheritance |
|
| 89. |
Name the base class(/es) and derived class (/es). |
|
Answer» Base class of marks: → Personal Base class of Result: → Marks Derived classes: → Marks and Results |
|
| 90. |
In what multilevel and multiple inheritance differ though both contains many base class? |
|
Answer» The derived class is a power packed class, as it can add additional attributes and methods and thus enhance its functionality. |
|
| 91. |
Write a short note on hierarchical inheritance. |
|
Answer» When more than one derived classes are created from a single base class, it is known as Hierarchical inheritance. |
|
| 92. |
Which type of Inheritance is shown in the program? |
|
Answer» Multilevel inheritance. |
|
| 93. |
#include#include#includeusing name spacestd;class publisher{char pname[15];char hoffice[15];char address[25];double turnover;protected:char phone[3][10];void register();public:publisher();∼ publisher);void enter data();void disp data(); };class branch{charbcity[15];char baddress[25];protected:intnoofemp;public:charbphone[2][10];branch();∼ branch();void have data();void give data();};class author: public branch, publisher{intaut_code;charaname[20];float income;public:author();~author();voidgetdata();voidputdata();};Answer the following questions based on the above given program:1. Which type of Inheritance is shown in the program?2. Specify the visibility mode of base classes.3. Give the sequence of Constructor/Destructor Invocation when object of class author is created.4. Name the base class(/es) and derived class (/es). |
|
Answer» 1. Multiple inheritance. 2. Private for publisher. Public for branch 3. branch(); // constructor of branch class publisher (); // constructor of publisher class author (); // constructor of author class ∼author (); // destructor of author class ∼publisher (); // destructor of publisher class ∼branch (); // destructor of branch class 4. Base class(/es): branch and publisher Derived class (/es): author. |
|
| 94. |
Explain the different types of inheritance. |
|
Answer» Types of Inheritance: There are different types of inheritance viz., Single inheritance, Multiple inheritance, Multilevel inheritance, hybrid inheritance and hierarchical inheritance. 1. Single Inheritance : When a derived class inherits only from one base class, it is known as single inheritance. 2. Multiple Inheritance : When a derived class inherits from multiple base classes it is known as multiple inheritance. 3. Hierarchical inheritance : When more than one derived classes are created from a single base class, it is known as Hierarchical inheritance. 4. Multilevel Inheritance : The transitive nature of inheritance is itself reflected by this form of inheritance. When a class is derived from a class which is a derived class then it is referred to as multilevel inheritance. 5. Hybrid inheritance : When there is a combination of more than one type of inheritance, it is known as hybrid inheritance. 6. Hence, it may be a combination of Multilevel and Multiple inheritance or Hierarchical and Multilevel inheritance or Hierarchical, Multilevel and Multiple inheritance. |
|
| 95. |
What is the difference between polymorphism and inheritance though both are used for reusability of code? |
|
Answer» Polymorphism:
Inheritance:
|
|
| 96. |
What is the difference between public and private visibility mode? |
|
Answer» Private visibility mode: When a base class is inherited with private visibility mode the public and protected members of the base class become ‘private’ members of the derived class. Public visibility mode: When a base class is inherited with public visibility mode, the protected members of the base class will be inherited as protected members of the derived class and the public members of the base class will be inherited as public members of the derived class |
|
| 97. |
The type of inheritance that reflects the transitive nature is ………(a) Single Inheritance(b) Multiple Inheritance(c) Multilevel Inheritance(d) Hybrid Inheritance |
|
Answer» (c) Multilevel Inheritance |
|
| 98. |
Write the syntax for derived and base class. |
|
Answer» class derived class name : visibility_mode baseclassname { // members of derivedclass }; |
|
| 99. |
Which visibility mode should be used when you want the features of the base class to be available to the derived class but not to the classes that are derived from the derived class?(a) Private(b) Public(c) Protected(d) All of these |
|
Answer» Answer (a) Private |
|
| 100. |
What is difference between the members present in the private visibility mode and the members present in the public visibility mode. |
|
Answer» Members present in the private visibility mode:
Members present in the public visibility mode:
|
|