CBSE Class 12 Computer Science Worksheet Set 03 Solved

Official Class 12 Computer Science Worksheets: 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.

Chapter-wise Practice Material: All Chapters

Navigate directly to the printable exercises for All Chapters using the digital viewer below. Each practice set allows students to isolate specific topics for thorough review and uninterrupted practice alongside standard textbooks.

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 Practice Sheet and Solutions for Class 12 Computer Science

Chapter Practice Questions for Class 12 Computer Science

Access structured practice worksheets for All Chapters designed in alignment with the latest CBSE curriculum for Class 12 Computer Science. These printable problem sets help students build accuracy and prepare effectively for school tests.

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

Wrap up your chapter revision by testing your knowledge against standard question formats. Everything on our platform is provided free of charge.

FAQs

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

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

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

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