Files — Flashcards
NIOS · Class 12 · Computer Science
42 flashcards for Files (NIOS Class 12 Computer Science) to test yourself on key terms and facts. Sample: "What is a file?"
Interactive on Super Tutor
Studying Files? Get the full interactive chapter.
Quizzes, flashcards, AI doubt-solver and a step-by-step study plan — built for flashcards and more.
Free trial, no card needed.
What is a file?
Answer
A file is a collection of logically related records.
Why is file handling needed in a program?
Answer
A program requires two types of data communication: writing data on a datafile and reading data from a datafile.
How does data move when writing to a file?
Answer
Writing data flows from keyboard to memory to hard disk or storage device.
How does data move when reading from a file?
Answer
Reading data flows from datafile to memory to output device.
What is an output stream in file handling?
Answer
This is called output stream where stream is the flow of data and requires an ofstream.h header file.
What is an input stream in file handling?
Answer
This is called input stream and requires ifstream.h header file. If both input stream and output stream are used in the same program then header file fstream.h is required. If header file fstream.h is…
What must happen before reading or writing a file?
Answer
A file must be opened before reading or writing data.
How can a file be opened?
Answer
A file can be opened in two ways: using constructor function of a class, or using the member function open() of the class.
+34 more flashcards
Practise AllFrequently Asked Questions
What are the important topics in Files for NIOS Class 12 Computer Science?
How many flashcards are available for Files?
How should I revise Files for the NIOS Class 12 board exam?
Sources & Official References
Content is aligned to the official syllabus. Refer to the board website for the latest curriculum.
More resources for Files
Practice Quiz
Test yourself with a quick quiz
Important Questions
Exam-style questions with answers
Revision Notes
Key points for last-minute revision
Formula Sheet
The chapter's formulas in one place
Chapter Summary
Understand the chapter at a glance
Concept Maps
See how topics connect
Study Plan
Step-by-step plan for this chapter
Syllabus
What topics to cover
For serious students
Get the full Files chapter — start free.
Quizzes, flashcards, an AI doubt solver and a study plan for NIOS Class 12 Computer Science. Free to start, no card needed.