CBSE Class 12 Computer Science Worksheet Set A Solved

Access the latest CBSE Class 12 Computer Science Worksheet Set A 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. Find the output of the following C++ code considering that the binary file SCHOOLS.DAT exists on the hard disk with the following records of 6 schools of the following class school.

CBSE Class 12 Computer Science Worksheet Set A Solved 1
 
class school
{ int Scode; //School Code
char Sname[20]; //School Name
int nooftr; //Number of Teachers in the school
public:
void Display()
{cout<
int RNOT()
{return nooftr;}
};
void main()
{ fstream SFIN;
SFIN.open(“SCHOOLS.DAT”,ios::binary|ios::in);
school S;
SFIN.seekg(3*sizeof(S));
SFIN.read((char*)&S, sizeof(S));
S.Display();
cout<<”Record :”<
SFIN.close();
}
 
b. Given a binary file STUDENT.DAT, containing records of the following class student type
class Student
{ char S_Admno[lO]; //Admission number of student
char S_Name[30]; //Name of student
int Percentage; //Marks Percentage of student
public:
void EnterData()
{ gets(S_Admno);
gets(S_Name);
cin>>Percentage; }
void DisplayData()
{ cout<
char * retadmno()
{ return (S_Admno); }
};
Write a function to accept an admission number from user and modify that record in the file.
 
c. Given a binary file directory.dat containing records of the phone with following structure struct phone
{ char name[20];
char address[30];
char phone[10]; };
Write a function shift_mtnl() in C++ that would display and copy all those records
which are having phone number starting with digit 2 from directory.dat to jio.dat
 
d. a) Write a difference ios::app and ios::in.
b) What is purpose of tellp() function.
 
2 a. Find the output for the following code assume all required header files are already included in the program.
 
Void main ( )
{
int Track [] = {10,20,30,40},*Striker ;
Striker=Track ;
Track [1] += 30 ;
cout<<”Striker”<<*Striker<
*Striker -=10 ;
Striker++;
cout<<”Next @”<<*Striker <
Striker +=2 ;
cout<<”last @”<<*Striker<<’\t’<
}
 
b. Find the output for the following code assume all required header files are already included in the program.
 
Void strcon(char s[])
{
int ©,l,j;
for(i=0,l=0;s[i]!=’\0’;i++,l++);
for(j=0; j
{ if (islower(s[j]))
s[j]=toupper(s[j]);
else if ( isupper(s[j]))
s[j]=toupper(s[j])-2;
else
s[j]=’@’; }}
void main()
{
char *c=”SwaPNa arman”;
strcon©;
cout<<”First Text = “<
c=c+3;
cout<<”Mid Text = “<
c=c+4-2;
cout<<”Last Text = “<
}
 
c. Write the output of the following C++ program code assume all required header
files are already included in the program.
#include
#define Modify(N) N*3+100
void main()
{
int LIST[]={10,15,12,17};
int *P=LIST, C;
for(C=0; C<4; C++)
{
*P=Modify(*P);
P++;
}
for (C=3; C>=0; C--)
{
cout<
}
}
 
 
d. What is pointer variable? Write the use of new and delete operator.


Please click on below link to download CBSE Class 12 Computer Science Worksheet Set A 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