CBSE Class 12 Computer Science Inheritance Worksheet Set 01

Download Class 12 Computer Science Worksheets for Inheritance

Explore reliable practice materials for Inheritance tailored for Class 12 learners. Utilizing these Computer Science worksheets ensures thorough preparation and strengthens problem-solving speed for upcoming school assessments.

Access Inheritance Questions and Exercises

Access the complete worksheet PDF for Inheritance below. Regular practice with these targeted questions builds familiarity with standard exam patterns and helps secure higher marks in final Computer Science evaluations.

 Inheritance (extending Class)

1. Answer the questions (i) to (iv) based on the following code :
class CUSTOMER
{
int Cust_no;
char Cust_Name[20];
protected:
void Register();
public:
CUSTOMER();
void Status();
};
class SALESMAN
{
int Salesman_no;
char Salesman_Name[20];
protected:
float Salary;
public:
SALESMAN();
void Enter();
void Show();
};
class SHOP : private CUSTOMER , public SALESMAN
{
char Voucher_No[10];
char Sales_Date[8];
public:
SHOP();
void Sales_Entry();
void Sales_Detail();
};
(i) Write the names of data members which are accessible from objects belonging to class CUSTOMER.
(ii) Write the names of all the member functions which are accessible from objects belonging to class SALESMAN.
(iii) Write the names of all the members which are accessible from member functions of class SHOP.
(iv) How many bytes will be required by an object belonging to SHOP.
 
2. Answer the questions (i) to (iv) based on the following:
class PUBLISHER
{
char Pub[12];
double Turnover;
protected:
void Register();
public:
PUBLISHER();
void Enter();
void Display();
};
class BRANCH
{
char CITY[20];
protected:
float Employees
public:
BRANCH();
void Haveit();
void Giveit();
};
class AUTHOR : private BRANCH , public PUBLISHER
{
int Acode;
char Aname[20];
float Amount;
public:
AUTHOR();
void Start();
void Show();
};
(i) Write the names of data members, which are accessible from objects belonging to class AUTHOR.
(ii) Write the names of all the member functions which are accessible from objects belonging to class BRANCH.
(iii) Write the names of all the members which are accessible from member functions of class AUTHOR.
(iv) How many bytes will be required by an object belonging to class AUTHOR?
 
3. Answer the questions (i) to (iv) based on the following code:
class Dolls
{
char DCode[5];
protected:
float Price ;
void CalcPrice(float);
public:
Dolls( );
void DInput( );
void DShow( );
};
class SoftDolls: public Dolls
{
char SDName[20];
float Weight;
public:
SoftDolls( );
void SDInput( );
void SDShow( );
};
class ElectronicDolls: public Dolls
{
char EDName[20];
char BatteryType[10];
int Battieries;
public:
ElectronicDolls ( );
void EDInput( );
void EDShow( );
};
(i) Which type of Inheritance is shown in the above example?
(ii) How many bytes will be required by an object of the class ElectronicDolls?
(iii) Write name of all the data members accessible from member functions of the class SoftDolls.
(iv) Write name of all the member functions accessible by an object.
 
4. Consider the following class declaration and answer the question below :
class university {
int noc;
protected;
char uname[25];
public:
university();
char state[25];
void enterdata();
void displaydata();
};
class college:public university{
int nod;
char cname[25];
protected:
void affiliation();
public:
college();
void enrol(int ,int);
void show();
};
class department:public college{
char dname[25];
int nof;
public:
department();
void display();
void input();
};
(i) Which class’s constructor will be called first at the time of declaration of an object of class department?
(ii) How many bytes does an object belonging to class department require?
(iii)Name the member function(s), which are accessed from the object of class department.
(iv) Name the data member, which are accessible from the object of class college. 
 
5. What do you understand by the term Inheritance? Explain with suitable example.
 
6. How many types of Inheritance is possible? Explain each of them with suitable examples.


Please click on below link to download CBSE Class 12 Computer Science Inheritance Worksheet Set A

Download CBSE Practice Material: Class 12 Computer Science Inheritance

Inheritance Printable Worksheet for Class 12 Computer Science

Access structured practice worksheets for Inheritance designed in alignment with the latest CBSE curriculum for Class 12 Computer Science. These printable problem sets help students build accuracy and prepare effectively for school tests.

How to Use These Practice Sheets

Built using the official NCERT book for Class 12 Computer Science, these practice materials provide reliable academic guidance. Pair your practice with our recommended NCERT solutions to master optimal problem-solving approaches.

Enhance Speed with Online Practice

Wrap up your chapter revision by testing your knowledge against standard question formats. Everything on our platform is provided free of charge.

FAQs

Where can I download the latest PDF for CBSE Class 12 Computer Science Inheritance Worksheet Set 01?

You can download the teacher-verified PDF for CBSE Class 12 Computer Science Inheritance Worksheet Set 01 from StudiesToday.com. These practice sheets for Class 12 Computer Science are designed as per the latest CBSE academic session.

Are these Computer Science Class 12 worksheets based on the 2026-27 competency-based pattern?

Yes, our CBSE Class 12 Computer Science Inheritance Worksheet Set 01 includes a variety of questions like Case-based studies, Assertion-Reasoning, and MCQs as per the 50% competency-based weightage in the latest curriculum for Class 12.

Do you provide solved answers for CBSE Class 12 Computer Science Inheritance Worksheet Set 01?

Yes, we have provided detailed solutions for CBSE Class 12 Computer Science Inheritance Worksheet Set 01 to help Class 12 and follow the official CBSE marking scheme.

How does solving CBSE Class 12 Computer Science Inheritance Worksheet Set 01 help in exam preparation?

Daily practice with these Computer Science worksheets helps in identifying understanding gaps. It also improves question solving speed and ensures that Class 12 students get more marks in CBSE exams.

Is there any charge for the Class 12 Computer Science practice test papers?

All our Class 12 Computer Science practice test papers and worksheets are available for free download in mobile-friendly PDF format. You can access CBSE Class 12 Computer Science Inheritance Worksheet Set 01 without any registration.