CBSE Class 12 Computer Science Worksheet Set 01 Solved

Download Class 12 Computer Science Worksheets for All Chapters

Review targeted practice sets for Class 12 Computer Science All Chapters. Built according to official educational guidelines for the 2026-27 academic year, these downloadable worksheets support daily revision and core concept reinforcement.

Access All Chapters Questions and Exercises

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

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

Download CBSE Practice Material: Class 12 Computer Science All Chapters

Chapter Practice Questions for Class 12 Computer Science

Explore reliable practice questions for All Chapters tailored for Class 12 Computer Science learners. Use these structured worksheets to evaluate preparedness and strengthen problem-solving skills.

Expert Practice Material for Class 12 Computer Science

Cross-reference your completed exercises with comprehensive NCERT solutions for Class 12 Computer Science to ensure absolute clarity across all sub-topics in this chapter.

Complete Your Chapter Revision

Follow up your worksheet practice by attempting the interactive online Computer Science MCQ test for this chapter to evaluate your execution speed. All platform resources are free to access.

FAQs

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

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

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

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

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