CBSE Class 12 Computer Science Worksheet Set D Solved

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

All Chapters 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 All Chapters, 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 All Chapters Worksheet PDF

1. What do you mean a class and an object? 
 
2. Differentiate between private, protected and public visibility modes of a class with suitable example.
 
3. What do you mean by static member function? Write an example. 
 
4. Rewrite the following program after removing the syntactical error(s), if any. Underline each correction.
#include[iostream.h>
Class Admission
{ int Adno ;
char name[25] ;
public
void getdata( )
{ cout<< “ Enter the admission number:”;
cin>> Adno;
cout<< “\n Enter name:” ;
gets(name) ;
}
void display( )
{ cout << “Admission number :”<< Adno;
cout<< “\nName:” <
} } ;
void main( )
{ Admission AD;
getdata( ).AD
display( );
}
 
5. Find and write the output of the following C++ program code: Note: Assume all required header files are already being included in the program.
class Stock
{ long int ID;
float Rate;
int Date;
public:
void Initialize( )
{ID=1001; Rate = 200; Date = 1; }
void RegCode( long int I, float R)
{ ID = I; Rate = R; }
void Change( int New, int DT )
{ Rate+= New ; Date = DT; }
void Show( )
{ cout<< “Date:”<< Date << endl ;
cout<<< ID << “#”<< Rate << endl ;
} };
void main( )
{ Stock A,B,C,D;
A.Initialize( ) ; B.Initilalize( ) ; C.Initialize( ) ; D.Initialize( ) ;
A.RegCode(1024,150) ; B.RegCode(2015,300) ; B.Change(100,29) ;
C.Change(-20,20) ; D.Change(30,15) ; A.Show( ); B.Show( ); C.Show( ); D.Show( ) ;
}
 
6. Write the definition of a class RING in C++ with following description:
Private Members:
Rno - data member of integer type
Radius - data member of float type
Area - data member of float type
CalcArea( ) - Member function to calculate and assign Area as 3.14 * Radius*Radius.
Public Members:
GetInfo( ) - A function to allow user to enter values of Rno and Radius. Also, this
function should call CalcArea() to calculate Area.
ShowInfo( ) - A function to display Rno, Radius and Area.
 
7. Define a class BUS in C++ with following description:
Private Members
- A data member Busnumber of type integer
- A data member Destination of type string(25 characters)
- A data member Distance of type float
- A data member Fuel of type float
- A member function CALCFUEL() to calculate the value of Fuel as per the following criteria
 
Distance                                  Fuel
<=1000                                   500
more than 1000 and <=2000    1100
more than 2000                       2200
Public Members
A function FEEDINFO( ) to allow user to enter values for Bus Number, Destination,Distance & call function CALCFUEL( ) to calculate the quantity of Fuel.
A function SHOWINFO( ) to allow user to view the content of all the data members.


Please click on below link to download CBSE Class 12 Computer Science Worksheet Set D Solved

All Chapters CBSE Class 12 Computer Science Worksheet

Students can use the All Chapters 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 All Chapters

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 latest CBSE Practice worksheets for Class 12 Computer Science All Chapters

You can download the CBSE Practice worksheets for Class 12 Computer Science All Chapters for the latest session from StudiesToday.com

Are the Class 12 Computer Science All Chapters Practice worksheets available for the latest session

Yes, the Practice worksheets issued for All Chapters Class 12 Computer Science have been made available here for the latest academic session

Is there any charge for the Practice worksheets for Class 12 Computer Science All Chapters

There is no charge for the Practice worksheets for Class 12 CBSE Computer Science All Chapters you can download everything free

How can I improve my scores by solving questions given in Practice worksheets in All Chapters Class 12 Computer Science

Regular revision of practice worksheets given on studiestoday for Class 12 subject Computer Science All Chapters can help you to score better marks in exams

Are there any websites that offer free Practice test papers for Class 12 Computer Science All Chapters

Yes, studiestoday.com provides all the latest Class 12 Computer Science All Chapters test practice sheets with answers based on the latest books for the current academic session