CBSE Class 12 Computer Science Inheritance Worksheet Set B

Access the latest CBSE Class 12 Computer Science Inheritance Worksheet Set B. We have provided free printable Class 12 Computer Science worksheets in PDF format, specifically designed for Inheritance. These practice sets are prepared by expert teachers following the 2025-26 syllabus and exam patterns issued by CBSE, NCERT, and KVS.

Inheritance Computer Science Practice Worksheet for Class 12

Students should use these Class 12 Computer Science chapter-wise worksheets for daily practice to improve their conceptual understanding. This detailed test papers include important questions and solutions for Inheritance, to help you prepare for school tests and final examination. Regular practice of these Class 12 Computer Science questions will help improve your problem-solving speed and exam accuracy for the 2026 session.

Download Class 12 Computer Science Inheritance Worksheet PDF

INHERITANCE
 
1. Imagine a publishing company that markets both books and audio-cassette versions of its works. Create a class publication that stores the title (a string) and price (type float) of a publication. From this class, derive two class: book, which adds a page count (type int) and tape, which adds a playing time in minutes (type float). Each of these three classes should have a getdata() function to get its data from the user at the keyboard, and a putdata() function to display its data. Write a main() program to test the book and tape classes by creating instances of them, asking the user to fill in their data with getdata(), and then displaying the data with putdata().
 
2. (i) Define a class STUDENT with the following specifications:-
Private Members: Name of type string , RollNo of type unsigned int Protected Members: Class of type unsigned int Public Members: Constructor to assign initial values of Name with “Not Assigned”, RollNo & Class with 0.
 
A function Input() to input the values all data members
A function Display() to Display the contents of all data members.
(ii) Define another class TEST which is publicly derived from class STUDENT with the following specifications:-
 
Private Members: English , Maths, Physics , Chemistry , ComputerScience of type float A function Calculate_Total() to calculate TotalMarks
Protected Members: TotalMarks of type float Public Members: Constructor to assign initial values of all data members with 0. A function getData() to input the values all data members & call Calculate_Total() A function displayData() to display the contents of all data members.
 
(iii) Define one more class RESULT which is publicly derived from class TEST with the following specifications:-
Private Members: Percentage of type float , Grade of type string
Public Members: Constructor to assign initial values of percentage with 0 and grade with ‘E’ A function calcPercentage() & A function calcGrade() according to the following criteria:
 
%age of Marks     Grade
>= 90                    A
>= 75 and <90       B
>= 60 and <75       C
>= 40 and <60       D
< 40                       E
 
A function displayResult() to display the values of percentage and grade. Now, write the main function to :
 
Create an object of class RESULT : To obtain all the values required to display the result of a student. Display the result with all the details


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

Inheritance CBSE Class 12 Computer Science Worksheet

Students can use the Inheritance practice sheet provided above to prepare for their upcoming school tests. This solved questions and answers follow the latest CBSE syllabus for Class 12 Computer Science. You can easily download the PDF format and solve these questions every day to improve your marks. Our expert teachers have made these from the most important topics that are always asked in your exams to help you get more marks in exams.

NCERT Based Questions and Solutions for Inheritance

Our expert team has used the official NCERT book for Class 12 Computer Science to create this practice material for students. After solving the questions our teachers have also suggested to study the NCERT solutions  which will help you to understand the best way to solve problems in Computer Science. You can get all this study material for free on studiestoday.com.

Extra Practice for Computer Science

To get the best results in Class 12, students should try the Computer Science MCQ Test for this chapter. We have also provided printable assignments for Class 12 Computer Science on our website. Regular practice will help you feel more confident and get higher marks in CBSE examinations.

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

You can download the teacher-verified PDF for CBSE Class 12 Computer Science Inheritance Worksheet Set B 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 competency-based pattern?

Yes, our CBSE Class 12 Computer Science Inheritance Worksheet Set B 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 B?

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

How does solving CBSE Class 12 Computer Science Inheritance Worksheet Set B 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 B without any registration.