CBSE Class 12 Computer Science Worksheet Set B Solved

Access the latest CBSE Class 12 Computer Science Worksheet Set B 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. a) What is the difference between ios::nocreate and ios::noreplace?
b) Give the two overloaded functions of seekg().
 
2. Observe the following program segment given below carefully and fill the blanks marked as Statement 1 and Statement 2 using seekg( ) and tellg( ) functions for performing the required task:
 
#include
class Flight
{
int FNo,
char Fname[20];
public:
// Function1 to count total number of records.
Int CountRec( );
};
int Flight :: CountRec( )
{
Flight Obj;
fstream File;
File.open(“Flight.Dat”, ios::in | ios::binary);
……………………………………………… // Statement 1, to go to end of file
int bytes =……………………………………// Statement 2, to find no. of bytes
int count = bytes / sizeof(Obj);
File.close( );
return count;
}
 
3. Assuming the class DOLLS declared below, write a function in C++ to read objects of DOLLS from the binary file „DOLL.dat‟ and display those details of DOLLS which are meant for children in the Agerange of “6 to 10”.
 
Class DOLLS
{
int Dcode;
char Dname[20];
char Agerange[20];
void enter()
{
cin>>Dcode;
gets(Dname);
gets(Agerange);
}
void Display()
{
cout<
}
char* Whatage(){ return Agerange;}
};
 
4. Write a function in C++ to delete the record of a given membership number(Mno) from a binary file ‘Club.dat’ containing records of the following structure:
 
struct Member
{
int Mno; //membership number
char Mname[20];
char Type; //Membership type
};
 
 
5. Define a) heap b) this pointer
 
6. Obtain the ouput from the following C++ program as expected to appear on screen after its execution (Assume all required header files are included)
 
void main()
{
char *Text=”AJANTHA”;
int* P,Num[]={1,5,7,9};
P=Num;
Text++;
cout<<*P<<*Text<
Text++;P++;
cout<<*P<
}
 
7. Find the output of the following program segment: (assume all header files are included)
 
int A[ ]={12,18,20, 35,40};
int *p=A;
while(*p<40)
{
if(*p%3==0)
*p=*p+4;
else
*p=*p+3;
p++;
}
for(int j=0;j<=4;j++)
{
cout<
if(j%3==0)
cout<
}
cout<
}
 
8. Find the output of the following code snippet: (assuming all required header files are included)
 
void NewText(char str[ ], int & pos)
{
char * p = str;
int length = strlen(p);
for( ; pos < length – 4; pos += 2 , p++)
{
*(p + pos) = toupper(*(p+pos));
}
cout<
}
void main( )
{
NewText(“Good Morning”, 0) ;
}


Please click on below link to download CBSE Class 12 Computer Science Worksheet Set B 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 the latest PDF for CBSE Class 12 Computer Science Worksheet Set B Solved?

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

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

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