CBSE Class 12 Computer Science Data File Handling Worksheet Set B

Read and download free pdf of CBSE Class 12 Computer Science Data File Handling Worksheet Set B. Students and teachers of Class 12 Computer Science can get free printable Worksheets for Class 12 Computer Science in PDF format prepared as per the latest syllabus and examination pattern in your schools. Standard 12 students should practice questions and answers given here for Computer Science in Grade 12 which will help them to improve your knowledge of all important chapters and its topics. Students should also download free pdf of Class 12 Computer Science Worksheets prepared by school teachers as per the latest NCERT, CBSE, KVS books and syllabus issued this academic year and solve important problems provided here with solutions on daily basis to get more score in school exams and tests

CBSE Class 12 Computer Science - Data File Handling. CBSE issues sample papers every year for students for class 12 board exams. Students should solve the CBSE issued sample papers to understand the pattern of the question paper which will come in class 12 board exams this year. The sample papers have been provided with marking scheme. It’s always recommended to practice as many CBSE sample papers as possible before the board examinations. Sample papers should be always practiced in examination condition at home or school and the student should show the answers to teachers for checking or compare with the answers provided. Students can download the sample papers in pdf format free and score better marks in examinations. Refer to other links too for latest sample papers.

Chapter-6

DATA FILE HANDLING

Q1. Define File .

Ans.A file is a bunch of bytes stored on some storage devices.

Q2. How are binary file differ from text files in c++?

Ans When a file is opened in text mode, various character translations may take place, such as the conversion of carriage return and linefeed sequences into newlines. However, no such character translations occur in files opened in binary mode. Any file can be opened in either text or binary mode. The only difference is the occurrence of character translations in text mode.

Q3. What is a stream? Name the streams generally used for file I/O.

Ans A stream is a sequence of bytes. Or in other words, a stream is a flow of bytes into or out of a program. Generally three streams are used for file I/O. These are:

(i) Ifstream: It is derived from istream class and it is used to associate a file with an input buffer so that the file can be read from.

(ii) Ofstream: It is derived from ostream class and it is used to associate a file with an output buffer so that the file can be written from.

(iii) fstream: It is derived from iostream class and it is used to associate a file with a buffer so that the file can be read from as well as written onto.

Q4. Differentiate between ifstream class and ofstream class.

Ans The ifstream class is an input stream class, which provides input operations for file.

The ofstream class is an output stream class, which provides output operations for file.

Q5. Differentiate between functions read() and write().

Ans The read() lets one read a unit of information from a file and a write() lets one write a unit of information to a file.

Q6. Differentiate between getline() and getc() functions.

Ans getc() function can read one character at a time .On the other hand , getline() can read a line of text of specified size.

getc() is defined in stdio.h however getline() is defined in iostream.h

Q7. Name two member functions of ofstream class.

Ans seekp() , tellp()

Q8. Distinguish between ios::out and ios::app.

Ans The ios::out is the default file mode of ofstream. With the mode of the file does not exist, it gets created but if the file exists then its existing contents get deleted. On the other hand ios::app is also an output mode , which creates the file if it does not exist but if the file exists then its existing contents are retained and new information is appended to it.

Q9. What is the difference between the functioning of ios::ate and ios::app file modes.

Ans Both ios::ate and ios::app place the file pointer at the end of the file just opened. The difference between two is that ios::app lets you add data to the end of the file only, while the ios::ate mode when opened with ofstream allows you to write data anywhere in the file, even over old data.

Q10. What is the need and usage of read() and write() functions when there are get() and put() functions for I/O.

Ans The get () and put () function perform I/O byte by byte .On the other hand, read () and write () functions lets you read and write structures and objects in one go without creating the need for I/O for individual constituent fields.

Please click the link below to download full pdf file for CBSE Class 12 Computer Science - Data File Handling.

Tags: 

 


Click to View or Download pdf file
Click for more Computer Science Study Material
CBSE Class 12 Computer Science Arrays Stacks Queues And Linked List Worksheet Set A
CBSE Class 12 Computer Science Arrays Stacks Queues And Linked List Worksheet Set B
CBSE Class 12 Computer Science Arrays Worksheet
CBSE Class 12 Computer Science Boolean Algebra Worksheet Set A
CBSE Class 12 Computer Science Boolean Algebra Worksheet Set B
CBSE Class 12 Computer Science C++ Programming Worksheet
CBSE Class 12 Computer Science Class And Objects Worksheet Set A
CBSE Class 12 Computer Science Class And Objects Worksheet Set B
CBSE Class 12 Computer Science Class And Objects Worksheet Set C
CBSE Class 12 Computer Science Class And Objects Worksheet Set D
CBSE Class 12 Computer Science Classes Objects Constructors And Destructors Worksheet
CBSE Class 12 Computer Science Communication And Network Concepts Worksheet
CBSE Class 12 Computer Science Computer Networking Worksheet
CBSE Class 12 Computer Science Constructors And Destructors Worksheet
CBSE Class 12 Computer Science Data File Handling Worksheet Set A
CBSE Class 12 Computer Science Data File Handling Worksheet Set B
CBSE Class 12 Computer Science Data File Handling Worksheet Set C
CBSE Class 12 Computer Science Database Concepts And Sql Worksheet
CBSE Class 12 Computer Science Dbms And Structured Query Language Worksheet
CBSE Class 12 Computer Science Flow Of Control Worksheet
CBSE Class 12 Computer Science Function And Structures Worksheet
CBSE Class 12 Computer Science Function Overloading Worksheet
CBSE Class 12 Computer Science Inheritance Extending Classes Worksheet Set A
CBSE Class 12 Computer Science Inheritance Extending Classes Worksheet Set B
CBSE Class 12 Computer Science Linked Lists Stacks And Queues Worksheet
CBSE Class 12 Computer Science Network And Communication Technology Worksheet
CBSE Class 12 Computer Science Object Oriented Programming In C++ Worksheet
CBSE Class 12 Computer Science Object Oriented Programming Worksheet
CBSE Class 12 Computer Science Oop Classes And Objects Worksheet
CBSE Class 12 Computer Science Pointer Worksheet Set A
CBSE Class 12 Computer Science Pointer Worksheet Set B
CBSE Class 12 Computer Science Program List Worksheet
CBSE Class 12 Computer Science Programming In C++ Worksheet
CBSE Class 12 Computer Science Revision Worksheet Set A
CBSE Class 12 Computer Science Revision Worksheet Set B
CBSE Class 12 Computer Science Revision Worksheet Set C
CBSE Class 12 Computer Science Revision Worksheet Set D
CBSE Class 12 Computer Science Revision Worksheet Set E
CBSE Class 12 Computer Science Revision Worksheet Set F
CBSE Class 12 Computer Science Revision Worksheet Set G
CBSE Class 12 Computer Science Revision Worksheet Set H
CBSE Class 12 Computer Science Revision Worksheet Set I
CBSE Class 12 Computer Science Revision Worksheet Set J
CBSE Class 12 Computer Science Revision Worksheet Set K
CBSE Class 12 Computer Science Revision Worksheet Set L
CBSE Class 12 Computer Science Revision Worksheet Set M
CBSE Class 12 Computer Science Revision Worksheet Set N
CBSE Class 12 Computer Science Revision Worksheet Set O
CBSE Class 12 Computer Science Revision Worksheet Set P
CBSE Class 12 Computer Science SQL Worksheet Set A
CBSE Class 12 Computer Science SQL Worksheet Set B
CBSE Class 12 Computer Science SQL Worksheet Set C
CBSE Class 12 Computer Science SQL Worksheet Set D
CBSE Class 12 Computer Science Stacks Queues And Linked List Worksheet
CBSE Class 12 Computer Science Sure Shot Questions Worksheet Set A
CBSE Class 12 Computer Science Sure Shot Questions Worksheet Set B
CBSE Class 12 Computer Science Sure Shot Questions Worksheet Set C
CBSE Class 12 Computer Science Sure Shot Questions Worksheet Set D
CBSE Class 12 Computer Science Text Files Worksheet
CBSE Class 12 Computers Boolean Algebra Worksheet
CBSE Class 12 Computers Classes And Objects Worksheet
CBSE Class 12 Computers Constructors And Destructors Worksheet
CBSE Class 12 Computers Data Structures Worksheet
CBSE Class 12 Computers Files Worksheet
CBSE Class 12 Computers Inheritance Worksheet Set A
CBSE Class 12 Computers Inheritance Worksheet Set B
CBSE Class 12 Computers Networking Worksheet
CBSE Class 12 Computers Object Oriented Programming Worksheet
CBSE Class 12 Computers Pointers Worksheet

Latest NCERT & CBSE News

Read the latest news and announcements from NCERT and CBSE below. Important updates relating to your studies which will help you to keep yourself updated with latest happenings in school level education. Keep yourself updated with all latest news and also read articles from teachers which will help you to improve your studies, increase motivation level and promote faster learning

CBSE Class 12 Evaluation Criteria 2021

SUMMARY OF THE POLICY FOR TABULATION OF MARKS FOR CLASS XII BOARD EXAMINATIONS 2021   1(a) Due to cancellation of the Board examinations, the assessment of theory portion of 80/70/60/50/30 marks will be done by the school based on the following:     Class...

CBSE asks schools to load Class 12 Internal Assessment Marks

This has a reference to the letter no CBSE/COORD/2021 dated 11.02.2021 regarding conduct of the School-Based Assessment (Internal Assessment/Practical/ Project) of Class-XII and uploading the marks by 11.06.2021. It has been observed that some schools have not been...

CBSE Board Examination Scheme of Assessment 2021 2022

A. Academic session to be divided into 2 Terms with approximately 50% syllabus in each term: The syllabus for the Academic session 2021-22 will be divided into 2 terms by following a systematic approach by looking into the interconnectivity of concepts and topics by...

FAQs on Policy for Tabulation of Marks for Class 10 Board Exams

ON POLICY Question.1 How CBSE will declare the result of Class-X? Answer. Results of Class X Board will be declared on the basis of an objective criterion developed by the Board vide Notification no.CBSE/CE/2021 dated 01.05.2021. Question.2. If any candidate is not...

Moderation of Marks Class 11 and 12 Board Exams

The portal for moderation and finalization of results for Class-12 is being opened from 16.07.2021 to 22.07.2021. As Board has to declare the result latest by 31.07.2021, schools have been requested to follow the schedule strictly and complete the moderation within...

×
Studies Today