CBSE Class 12 Computer Science Worksheet Set C Solved

Access the latest CBSE Class 12 Computer Science Worksheet Set C 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::app and ios::ate?
b) Explain significance eof() function.
 
2. Observe the program segment carefully and fill the missing statements where statement1 is to position the file pointer , statement2 is to write the record:
 
class student
{
int student_no;
char student_name[20];
int mark;
public:
void enterDetail( );
void showDetail( );
void change_mark( ); //Function to change the mark
int getStudent_no( ){ return student_no;}
};
void modify( int y )
{
fstream File;
File.open( “student.dat”, ios::binary|ios::in|ios::out) ;
student i;
int recordsRead = 0, found = 0;
while(!found && File .read((char*) & i , sizeof (i))
{
recordsRead++;
if(i . getStudent_no( ) = = 25 )
{
i . change_mark( );
_________________________//Missing statement 1 ,to position the file pointer
_________________________//Missing statement 2, to write the record
found = 1;
}
}
if( found = = 1)
cout<<”Record modified” ;
File.close() ;
}
 
3. Write a function in C++ add more records at the end of a file “CUST.DAT”, assuming the binary file is containing the objects of the following class:
class ORG
{
char Account_holder_name[20];
int Account_Number; float Balance;
public:
void input()
{ gets(Account_holder_name);
cin>> Account_Number>> Balance;
}
void display()
{
cout<
}
};
 
4. Given a sorted binary file BOOK.DAT(sorted in ascending order of bookid)
containing records of the following type:
class Book {
int bookid;
char Bname[20], status; // „A‟- active ,‟ I‟- inactive.
public:
void readdetails( )
{
cin>>bookid; gets(Bname); cin>>status;
}
void displaydetails( )
{
cout<
}
int getid( ) { return bookid }
};
Write a function to insert a new book record (object) in the sorted file in the right position.
 
5. Explain a) NULL pointer b) Dynamic memory allocation
 
6. char Name[ ]= “IntRAneT”;
char* T=Name;
T+=3;
cout<<*T<<*Name<
cout<<(T+2)<
}
 
7. Find the output of the following program segment:
int A[ ]={12,18,20, 35,40};
int *p=A;
while(*p<30)
{
if(*p%3!=0)
*p=*p+5;
else
*p=*p+2;
p++;
}
for(int j=0;j<=4;j++)
{
cout<
if(j%3==0)
cout<
}
cout<
}
 
8. #include
#include
int a=20;
void main()
{
void demo(int,int*);
int a=10;int* p=&a;
demo(::a,p);
cout<<::a<<":"<
}
void demo(int y,int *z)
{
y*=*z;
*z+=a;
cout<
}


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