CBSE Class 12 Computer Science 1 Marks HOTs

Please refer to CBSE Class 12 Computer Science 1 Marks HOTs. Download HOTS questions and answers for Class 12 Computer Science. Read CBSE Class 12 Computer Science HOTs for All Chapters below and download in pdf. High Order Thinking Skills questions come in exams for Computer Science in Class 12 and if prepared properly can help you to score more marks. You can refer to more chapter wise Class 12 Computer Science HOTS Questions with solutions and also get latest topic wise important study material as per NCERT book for Class 12 Computer Science and all other subjects for free on Studiestoday designed as per latest CBSE, NCERT and KVS syllabus and pattern for Class 12

All Chapters Class 12 Computer Science HOTS

Class 12 Computer Science students should refer to the following high order thinking skills questions with answers for All Chapters in Class 12. These HOTS questions with answers for Class 12 Computer Science will come in exams and help you to score good marks

HOTS Questions All Chapters Class 12 Computer Science with Answers

1 Mark Questions

Programming in C++

1. Observe the program segment carefully and answer the question that follows:
class item
{
int item_no;
char item_name[20];
public:
void enterDetail( );
void showDetail( );
int getItem_no( ){ return item_no;}
};
void modify(item x, int y )
{
fstream File;
File.open( “item.dat”, ios::binary | ios::in | ios::out) ;
item i;
int recordsRead = 0, found = 0;
while(!found && File.read((char*) &i , sizeof (i)))
{
recordsRead++;
if(i . getItem_no( ) = = y )
{
_________________________//Missing statement
File.write((char*) &x , sizeof (x));
found = 1;
}
}
if(! found)
cout<<”Record for modification does not exist” ;
File.close() ;
}

If the function modify( ) is supposed to modify a record in the file “ item.dat “, which item_no is y, with the values of item x passed as argument, write the appropriate
statement for the missing statement using seekp( ) or seekg( ), whichever is needed, in the above code that would write the modified record at its proper place.

2. Observe the program segment carefully and answer the question that follows:
class member
{
int member_no;
char member_name[20];
public:
void enterDetail( );
void showDetail( );
int getMember_no( ){ return member_no;}
};
void update(member NEW )
{
fstream File;
File.open( “member.dat”, ios::binary|ios::in|ios::out) ;
member i;
while(File .read((char*) & i , sizeof (i)))
{
if(NEW . getMember_no( ) = = i . getMember_no( ))
{
_________________________//Missing statement
File.write((char*) &NEW , sizeof (NEW));
}
}
File.close() ;
}
If the function update( ) is supposed to modify the member_name field of a record in the file “ member.dat” with the values of member NEW passed as argument, write the
appropriate statement for the missing statement using seekp( ) or seekg( ), whichever is needed, in the above code that would write the modified record at its proper place.

3. Observe the program segment carefully and answer the question that follows:
class item
{
int item_no;
char item_name[20];
public:
void enterDetails( );
void showDetail( );
int getItem_no( ){ return item_no;}
};
void modify(item x )
{
fstream File;
File.open( “item.dat”, _______________ ) ; //parameter missing
item i;
while(File .read((char*) & i , sizeof (i)))
{
if(x . getItem_no( ) = = i . getItem_no( ))
{
File.seekp(File.tellg( ) – sizeof(i));
File.write((char*) &x , sizeof (x));
}
else
File.write((char*) &i , sizeof (i));
}
File.close() ;
}

If the function modify( ) modifies a record in the file “ item.dat “ with the values of item x passed as argument, write the appropriate parameter for the missing parameter in
the above code, so as to modify record at its proper place.

4. Observe the program segment carefully and answer the question that follows:
class member
{
int member_no;
char member_name[20];
public:
void enterDetails( );
void showDetail( );
int getMember_no( ){ return member_no;}
};
void update(member NEW )
{
fstream File;
File.open( “member.dat”, ios::binary|ios::in|ios::out) ;
member i;
while(File .read((char*) & i , sizeof (i)))
{
if(NEW . getMember_no( ) = = i . getMember_no( ))
{
File.seekp( _________ , ios::cur ) //Paremeter Missing
File.write((char*) &NEW , sizeof (NEW));
}
}
File.close() ;
}
If the function update( ) is supposed to modify a record in the file “ member.dat” with the values of member NEW passed as argument, write the appropriate parameter for the
missing parameter in the above code, so as to modify record at its proper place.

5. A file named as “STUDENT.DAT” contains the student records, i.e. objects of class student.
Write the command to open the file to update a student record. (Use suitable stream class and file mode(s).

6. A file named as “STUDENT.DAT” contains the student records, i.e. objects of class student.
Assuming that the file is just opened through the object FILE of fstream class, in the required file mode, write the command to position the put pointer to point to second record from the last record.

7. A file named as “STUDENT.DAT” contains the student records, i.e. objects of class student.
Assuming that the file is just opened through the object FILE of fstream class, in the required file mode, write the command to position the get pointer to point to fifth record from the beginning.

8. Read the code given below and answer the question:
void main( )
{
char ch = ‘A’;
fstream outFile (“data.dat”, ios::out);
outFile<<ch<<ch;
}
If the file contains GOOD before execution, what will be the contents of the file after execution of this code?

9. Observe the program segment carefully and answer the question that follows:
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( ) = = y )
{
i . change_mark( );
_________________________//Missing statement 1
_________________________//Missing statement 2
found = 1;
}
}
if( found = = 1)
cout<<”Record modified” ;
File.close() ;

}
If the function modify( ) is supposed to change the mark of a student having student_no y in the file “student.dat”, write the missing statements to modify the student record.

10. Observe the program segment carefully and answer the question that follows:
class item
{
int item_no;
char item_name[20];
public:
void enterDetail( );
void showDetail( );
int getItem_no( ){ return item_no;}
};
void modify(item x )
{
fstream File;
File.open( “item.dat”, ios::binary|ios::in|ios::out ) ;
item i;
while(File .read((char*) & i , sizeof (i)))//Statement 1
{
if(x . getItem_no( ) = = i . getItem_no( ))
{
File.seekp(File.tellg( ) – sizeof(i));
File.write((char*) &x , sizeof (x));
}
}
File.close() ;
}
If the function modify( ) modifies a record in the file “ item.dat” with the values of item x passed as argument, rewrite statement 1 in the above code using ios::eof( ) , so as to modify record at its proper place.

2 Marks Questions

Programming in C++

1. What is wrong with the following while loop:
a. int counter = 1; b. int counter = 1;
while ( counter < 100) while ( counter < 100)
{ cout << counter << “\n;
cout << counter << “\n; counter + +;
counter - -;
}

2. What will be the output of following:
void main ( )
{
int val = 10;
cout << val ++ << val << ++ val;
}

More Study Material

CBSE Class 12 Computer Science All Chapters HOTS

We hope students liked the above HOTS for All Chapters designed as per the latest syllabus for Class 12 Computer Science released by CBSE. Students of Class 12 should download the High Order Thinking Skills Questions and Answers in Pdf format and practice the questions and solutions given in above Class 12 Computer Science  HOTS Questions on daily basis. All latest HOTS with answers have been developed for Computer Science by referring to the most important and regularly asked topics that the students should learn and practice to get better score in school tests and examinations. Studiestoday is the best portal for Class 12 students to get all latest study material free of cost.

HOTS for Computer Science CBSE Class 12 All Chapters

Expert teachers of studiestoday have referred to NCERT book for Class 12 Computer Science to develop the Computer Science Class 12 HOTS. If you download HOTS with answers for the above chapter daily, you will get higher and better marks in Class 12 test and exams in the current year as you will be able to have stronger understanding of all concepts. Daily High Order Thinking Skills questions practice of Computer Science and its study material will help students to have stronger understanding of all concepts and also make them expert on all critical topics. You can easily download and save all HOTS for Class 12 Computer Science also from www.studiestoday.com without paying anything in Pdf format. After solving the questions given in the HOTS which have been developed as per latest course books also refer to the NCERT solutions for Class 12 Computer Science designed by our teachers

All Chapters HOTS Computer Science CBSE Class 12

All HOTS given above for Class 12 Computer Science have been made as per the latest syllabus and books issued for the current academic year. The students of Class 12 can refer to the answers which have been also provided by our teachers for all HOTS of Computer Science so that you are able to solve the questions and then compare your answers with the solutions provided by us. We have also provided lot of MCQ questions for Class 12 Computer Science in the HOTS so that you can solve questions relating to all topics given in each chapter. All study material for Class 12 Computer Science students have been given on studiestoday.

All Chapters CBSE Class 12 HOTS Computer Science

Regular HOTS practice helps to gain more practice in solving questions to obtain a more comprehensive understanding of All Chapters concepts. HOTS play an important role in developing an understanding of All Chapters in CBSE Class 12. Students can download and save or print all the HOTS, printable assignments, and practice sheets of the above chapter in Class 12 Computer Science in Pdf format from studiestoday. You can print or read them online on your computer or mobile or any other device. After solving these you should also refer to Class 12 Computer Science MCQ Test for the same chapter

CBSE HOTS Computer Science Class 12 All Chapters

CBSE Class 12 Computer Science best textbooks have been used for writing the problems given in the above HOTS. If you have tests coming up then you should revise all concepts relating to All Chapters and then take out print of the above HOTS and attempt all problems. We have also provided a lot of other HOTS for Class 12 Computer Science which you can use to further make yourself better in Computer Science.

Where can I download latest CBSE HOTS for Class 12 Computer Science All Chapters

You can download the CBSE HOTS for Class 12 Computer Science All Chapters for latest session from StudiesToday.com

Can I download the HOTS of All Chapters Class 12 Computer Science in Pdf

Yes, you can click on the link above and download topic wise HOTS Questions Pdfs for All Chapters Class 12 for Computer Science

Are the Class 12 Computer Science All Chapters HOTS available for the latest session

Yes, the HOTS issued by CBSE for Class 12 Computer Science All Chapters have been made available here for latest academic session

How can I download the Class 12 Computer Science All Chapters HOTS

You can easily access the link above and download the Class 12 HOTS Computer Science All Chapters for each topic

Is there any charge for the HOTS with solutions for All Chapters Class 12 Computer Science

There is no charge for the HOTS and their answers for All Chapters Class 12 CBSE Computer Science you can download everything free

What does HOTS stand for in Class 12 Computer Science All Chapters

HOTS stands for "Higher Order Thinking Skills" in All Chapters Class 12 Computer Science. It refers to questions that require critical thinking, analysis, and application of knowledge

How can I improve my HOTS in Class 12 Computer Science All Chapters

Regular revision of HOTS given on studiestoday for Class 12 subject Computer Science All Chapters can help you to score better marks in exams

Are HOTS questions important for All Chapters Class 12 Computer Science exams

Yes, HOTS questions are important for All Chapters Class 12 Computer Science exams as it helps to assess your ability to think critically, apply concepts, and display understanding of the subject.