Advertisements
Online Mock Tests
Chapters
2: Number Systems
3: Computer Organization
4: Theoretical Concepts of Operating System
5: Working with Windows Operating System
6: Specification and Abstraction
7: Composition and Decomposition
8: Iteration and recursion
9: Introduction to C++
10: Flow of Control
11: Functions
12: Arrays and Structures
13: Introducton to Object Oriented Programming Techniques
14: Classes and objects
15: Polymorphism
▶ 16: Inheritance
17: Computer Ethics and Cyber Security
18: Tamil Computing
![Samacheer Kalvi solutions for Computer Science [English] Class 11 TN Board chapter 16 - Inheritance Samacheer Kalvi solutions for Computer Science [English] Class 11 TN Board chapter 16 - Inheritance - Shaalaa.com](/images/computer-science-english-class-11-tn-board_6:5f2b1b2038084cf381bfa42c826a928c.jpg)
Advertisements
Solutions for Chapter 16: Inheritance
Below listed, you can find solutions for Chapter 16 of Tamil Nadu Board of Secondary Education Samacheer Kalvi for Computer Science [English] Class 11 TN Board.
Samacheer Kalvi solutions for Computer Science [English] Class 11 TN Board 16 Inheritance Evaluation - Section - A [Pages 272 - 273]
Choose the correct answer
Which of the following is the process of creating new classes from an existing class?
Polymorphism
Inheritance
Encapsulation
superclass
Which of the following derives a class student from the base class school?
school: student
class student : public school
student : public school
class school : public student
The type of inheritance that reflects the transitive nature is ______
Single Inheritance
Multiple Inheritance
Multilevel Inheritance
Hybrid Inheritance
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?
Private
Public
Protected
All of these
Inheritance is a process of creating a new class from ______
Base class
abstract
derived class
Function
A class is derived from a class which is a derived class itself, then this is referred to as ______
multiple inheritances
multilevel inheritance
single inheritance
double inheritance
Which amongst the following is executed in the order of inheritance?
Destructor
Member function
Constructor
Object
Which of the following is true with respect to inheritance?
Private members of the base class are inherited to the derived class with private.
Private members of the base class are not inherited to the derived class with private accessibility.
Public members of a base class are inherited but not visible to the derived class.
Protected members of the base class are inherited but not visible to the outside class.
Based on the following class declaration answer the question?
class vehicle
{ int wheels;
public:
void input_data(float,float);
void output_data();
protected:
int passenger;
};
class heavy_vehicle : protected vehicle {
int diesel_petrol;
protected:
int load;
public:
void read_data(float,float)
void write_data(); };
class bus: private heavy_vehicle {
char Ticket[20];
public:
void fetch_data(char);
void display_data(); };
Which is the base class of the class heavy_vehicle?
Bus
heavy_vehicle
vehicle
both (a) and (c)
Based on the following class declaration answer the question?
class vehicle
{ int wheels;
public:
void input_data(float,float);
void output_data();
protected:
int passenger;
};
class heavy_vehicle : protected vehicle {
int diesel_petrol;
protected:
int load;
public:
void read_data(float,float)
void write_data(); };
class bus: private heavy_vehicle {
char Ticket[20];
public:
void fetch_data(char);
void display_data(); };
The data member can be accessed from the function displaydata().
passenger
load
Ticket
All of these
Based on the following class declaration answer the question?
class vehicle
{ int wheels;
public:
void input_data(float,float);
void output_data();
protected:
int passenger;
};
class heavy_vehicle : protected vehicle {
int diesel_petrol;
protected:
int load;
public:
void read_data(float,float)
void write_data(); };
class bus: private heavy_vehicle {
char Ticket[20];
public:
void fetch_data(char);
void display_data(); };
The member function that can be accessed by an object of bus Class is ______
input_data(), output_data()
read_data() ,write_data()
fetch_data(), display_data()
All of these
Based on the following class declaration answer the question?
class vehicle
{ int wheels;
public:
void input_data(float,float);
void output_data();
protected:
int passenger;
};
class heavy_vehicle : protected vehicle {
int diesel_petrol;
protected:
int load;
public:
void read_data(float,float)
void write_data(); };
class bus: private heavy_vehicle {
char Ticket[20];
public:
void fetch_data(char);
void display_data(); };
The member function is inherited as public by Class Bus ______
input_data(), output_data()
read_data(), write_data()
fetch_data(), display_data()
none of these
Samacheer Kalvi solutions for Computer Science [English] Class 11 TN Board 16 Inheritance Evaluation - Section - B [Page 273]
Very Short Answers
What is inheritance?
What is a base class?
Why derived class is called a power-packed class?
In what multilevel and multiple inheritances differ though both contain many base classes?
What is the difference between public and private visibility modes?
Samacheer Kalvi solutions for Computer Science [English] Class 11 TN Board 16 Inheritance Evaluation - Section - C [Page 273]
Short Answers
What are the points to be noted while deriving a new class?
What is the difference between the members present in the private visibility mode and the members present in the public visibility mode?
What is the difference between polymorphism and inheritance though are used for the reusability of code?
What do you mean by overriding?
Write some facts about the execution of constructors and destructors in inheritance?
Samacheer Kalvi solutions for Computer Science [English] Class 11 TN Board 16 Inheritance Evaluation - Section - D [Pages 273 - 274]
Explain in detail
Explain the different types of inheritance?
Explain the different visibility modes through pictorial representation?
Consider the following c++ code and answer the question?
class Personal
{
int Class,Rno;
char Section;
protected:
char Name[20];
public:
personal();
void pentry();
void Pdisplay(); };
class Marks:private Personal
{ float M{5};
protected:
char Grade[5];
public: Marks();
void Mentry();
void Mdisplay(); };
class Result:public Marks
{
float Total,Agg;
public:
char FinalGrade, Commence[20];
Result();
void Rcalculate();
void Rdisplay();
};
Which type of Inheritance is shown in the program?
Consider the following c++ code and answer the question?
class Personal
{ int Class,Rno;
char Section;
protected:
char Name[20];
public:
personal();
void pentry();
void Pdisplay(); };
class Marks:private Personal
{ float M{5};
protected:
char Grade[5];
public: Marks();
void Mentry();
void Mdisplay(); };
class Result:public Marks
{
float Total,Agg;
public:
char FinalGrade, Commence[20];
Result();
void Rcalculate();
void Rdisplay();
};
Specify the visibility mode of base classes.
Consider the following c++ code and answer the question?
class Personal
{ int Class,Rno;
char Section;
protected:
char Name[20];
public:
personal();
void pentry();
void Pdisplay(); };
class Marks:private Personal
{ float M{5};
protected:
char Grade[5];
public: Marks();
void Mentry();
void Mdisplay(); };
class Result:public Marks
{
float Total,Agg;
public:
char FinalGrade, Commence[20];
Result();
void Rcalculate();
void Rdisplay();
};
Give the sequence of Constructor/Destructor Invocation when the object of class Result is created.
Consider the following c++ code and answer the question?
class Personal
{ int Class,Rno;
char Section;
protected:
char Name[20];
public:
personal();
void pentry();
void Pdisplay(); };
class Marks:private Personal
{ float M{5};
protected:
char Grade[5];
public: Marks();
void Mentry();
void Mdisplay(); };
class Result:public Marks
{
float Total,Agg;
public:
char FinalGrade, Commence[20];
Result();
void Rcalculate();
void Rdisplay();
};
Name the base class(/es) and derived class (/es).
Consider the following c++ code and answer the question?
class Personal
{ int Class,Rno;
char Section;
protected:
char Name[20];
public:
personal();
void pentry();
void Pdisplay(); };
class Marks:private Personal
{ float M{5};
protected:
char Grade[5];
public: Marks();
void Mentry();
void Mdisplay(); };
class Result:public Marks
{
float Total,Agg;
public:
char FinalGrade, Commence[20];
Result();
void Rcalculate();
void Rdisplay();
};
Give a number of bytes to be occupied by the object of the following class:
(a) Personal
(b) Marks
(c) Result
Consider the following c++ code and answer the question?
class Personal
{ int Class,Rno;
char Section;
protected:
char Name[20];
public:
personal();
void pentry();
void Pdisplay(); };
class Marks:private Personal
{ float M{5};
protected:
char Grade[5];
public: Marks();
void Mentry();
void Mdisplay(); };
class Result:public Marks
{
float Total,Agg;
public:
char FinalGrade, Commence[20];
Result();
void Rcalculate();
void Rdisplay();
};
Write the names of data members accessible from the object of class Result.
Consider the following c++ code and answer the question?
class Personal
{ int Class,Rno;
char Section;
protected:
char Name[20];
public:
personal();
void pentry();
void Pdisplay(); };
class Marks:private Personal
{ float M{5};
protected:
char Grade[5];
public: Marks();
void Mentry();
void Mdisplay(); };
class Result:public Marks
{
float Total,Agg;
public:
char FinalGrade, Commence[20];
Result();
void Rcalculate();
void Rdisplay();
};
Write the names of all member functions accessible from the object of class Result.
Consider the following c++ code and answer the question?
class Personal
{ int Class,Rno;
char Section;
protected:
char Name[20];
public:
personal();
void pentry();
void Pdisplay(); };
class Marks:private Personal
{ float M{5};
protected:
char Grade[5];
public: Marks();
void Mentry();
void Mdisplay(); };
class Result:public Marks
{
float Total,Agg;
public:
char FinalGrade, Commence[20];
Result();
void Rcalculate();
void Rdisplay();
};
Write the names of all members accessible from member functions of class Result.
Write the output of the following program.
#include<iostream>
using namespace std;
class A
{ protected:
int x;
public:
void show()
{cout<<"x = "<<x<<endl;}
A()
{ cout<<endl<<" I am class A "<<endl;}
~A()
{ cout<<endl<<" Bye ";} };
class B : public A
{protected:
int y;
public:
B(int x1, int y1)
{ x = x1;
y = y1; }
B()
{ cout<<endl<<" I am class B "<<endl; }
~B()
{ cout<<endl<<" Bye "; }
void show()
{ cout<<"x = "<<x<<endl;
cout<<"y = "<<y<<endl; } };
int main()
{A objA;
B objB(30, 20);
objB.show();
return 0; }
Debug the following program.
%include(iostream.h)
#include<conio.h>
class A()
{ public;
int a1,a2:a3;
void getdata[]
{ a1=15; a2=13; a3=13; } }
class B:: public A()
{ PUBLIC
voidfunc()
{ int b1:b2:b3;
A::getdata[];
b1=a1;
b2=a2;
a3=a3;
cout<<b1<<’\t’<<b2<<’t\’<<b3; }
void main()
{ B der;
der1:func(); }
Solutions for 16: Inheritance
![Samacheer Kalvi solutions for Computer Science [English] Class 11 TN Board chapter 16 - Inheritance Samacheer Kalvi solutions for Computer Science [English] Class 11 TN Board chapter 16 - Inheritance - Shaalaa.com](/images/computer-science-english-class-11-tn-board_6:5f2b1b2038084cf381bfa42c826a928c.jpg)
Samacheer Kalvi solutions for Computer Science [English] Class 11 TN Board chapter 16 - Inheritance
Shaalaa.com has the Tamil Nadu Board of Secondary Education Mathematics Computer Science [English] Class 11 TN Board Tamil Nadu Board of Secondary Education solutions in a manner that help students grasp basic concepts better and faster. The detailed, step-by-step solutions will help you understand the concepts better and clarify any confusion. Samacheer Kalvi solutions for Mathematics Computer Science [English] Class 11 TN Board Tamil Nadu Board of Secondary Education 16 (Inheritance) include all questions with answers and detailed explanations. This will clear students' doubts about questions and improve their application skills while preparing for board exams.
Further, we at Shaalaa.com provide such solutions so students can prepare for written exams. Samacheer Kalvi textbook solutions can be a core help for self-study and provide excellent self-help guidance for students.
Concepts covered in Computer Science [English] Class 11 TN Board chapter 16 Inheritance are Inheritance, Need for Inheritance, Derived Class and Base Class, Visibility Modes, Overriding / Shadowing Base Class Functions in Derived Class, Inheritance.
Using Samacheer Kalvi Computer Science [English] Class 11 TN Board solutions Inheritance exercise by students is an easy way to prepare for the exams, as they involve solutions arranged chapter-wise and also page-wise. The questions involved in Samacheer Kalvi Solutions are essential questions that can be asked in the final exam. Maximum Tamil Nadu Board of Secondary Education Computer Science [English] Class 11 TN Board students prefer Samacheer Kalvi Textbook Solutions to score more in exams.
Get the free view of Chapter 16, Inheritance Computer Science [English] Class 11 TN Board additional questions for Mathematics Computer Science [English] Class 11 TN Board Tamil Nadu Board of Secondary Education, and you can use Shaalaa.com to keep it handy for your exam preparation.