Files — Important Questions
NIOS · Class 12 · Computer Science
77 important questions from Files for NIOS Class 12 Computer Science, with answers. Includes multiple choice and multiple correct questions.
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 important questions and more.
Free trial, no card needed.
Important Questions from Files
Which header file is required for output stream?
Show answer
ofstream.h
Output stream requires ofstream.h.
Which header file is required for input stream?
Show answer
ifstream.h
Input stream requires ifstream.h.
Which header file is required when both input stream and output stream are used in the same program?
Show answer
fstream.h
When both input and output streams are used in the same program, fstream.h is required.
How can a file be opened?
Show answer
Using the constructor function of a class or the member function open()
A file can be opened in two ways: constructor function or open() member function.
+73 more questions on Files (NIOS Class 12 Computer Science)
Practise AllFrequently Asked Questions
What are the important topics in Files for NIOS Class 12 Computer Science?
How many important questions are there in Files?
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
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
Flashcards
Quick-fire cards for active recall
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.