CBSE Class 12 Computer Science Worksheet Set 02 Solved

Practice Worksheets for Class 12 Computer Science: All Chapters

Access printable practice worksheets for All Chapters designed to align with the 2026-27 academic syllabus for Class 12 Computer Science. These structured exercises help students evaluate their conceptual understanding and improve exam readiness.

Practice All Chapters Worksheets for Class 12 Computer Science

View or download the dedicated All Chapters practice resource below. Engaging with these objective and subjective questions daily ensures continuous academic progress and mastery of the 2026-27 curriculum.

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

Practice Worksheet and Study Resources for Class 12 Computer Science All Chapters

Chapter Practice Questions for Class 12 Computer Science

Review targeted practice exercises for Class 12 Computer Science All Chapters. Curated to match official CBSE guidelines, these downloadable PDF sheets support daily revision and core concept reinforcement.

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 02 Solved?

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

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

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