Skip to main content
Chapter 21 of 29
Important Questions

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.

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 important questions and more.

Free trial, no card needed.

77 Questions·
multiple choicemultiple correct

Important Questions from Files

1multiple choice
1 marks

Which header file is required for output stream?

Show answer

ofstream.h

Output stream requires ofstream.h.

2multiple choice
1 marks

Which header file is required for input stream?

Show answer

ifstream.h

Input stream requires ifstream.h.

3multiple choice
1 marks

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.

4multiple choice
1 marks

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 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 important questions are there in Files?
Super Tutor has 77 practice questions for Files, including multiple choice, multiple correct questions. A sample with answers is on this page.

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.