Skip to main content
Chapter 21 of 29
Flashcards

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?"

77 questions42 flashcards2 formulas & key relations5 concepts

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.

42 Flashcards·
Definition of a fileNeed for file handlingWriting data flowReading data flowOutput streamInput streamOpening requirementWays to open a file
Card 1Definition of a file

What is a file?

Answer

A file is a collection of logically related records.

Card 2Need for file handling

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.

Card 3Writing data flow

How does data move when writing to a file?

Answer

Writing data flows from keyboard to memory to hard disk or storage device.

Card 4Reading data flow

How does data move when reading from a file?

Answer

Reading data flows from datafile to memory to output device.

Card 5Output stream

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.

Card 6Input stream

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…

Card 7Opening requirement

What must happen before reading or writing a file?

Answer

A file must be opened before reading or writing data.

Card 8Ways to open a file

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 All

Frequently Asked Questions

What are the important topics in Files for NIOS Class 12 Computer Science?
Key topics in Files include Core File Concepts, Opening Files and Access Modes, Reading, Writing, and File Pointers, Example 3 and Record Operations. Study these first, then practise questions on each for the NIOS Class 12 board exam.
How many flashcards are available for Files?
There are 42 flashcards for Files covering key definitions, facts and ideas. A few sample cards are shown on this page.
How should I revise Files for the NIOS Class 12 board exam?
Learn the core ideas first, then work through the 77 practice questions on Files. Revise definitions regularly and use flashcards for quick recall before the exam.

Sources & Official References

Content is aligned to the official syllabus. Refer to the board website for the latest curriculum.

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.