Skip to main content
Chapter 21 of 29
Practice Quiz

Files — Practice Quiz

NIOS · Class 12 · Computer Science

4 MCQs on Files for NIOS Class 12 Computer Science: tap an answer to check it and see why. The full chapter test has 77 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 practice quiz and more.

Free trial, no card needed.

Quick Quiz: Files

0/4

Tap an answer to check it instantly. No sign-up needed for these 4.

1

What is a file in computer science according to the chapter?

2

What are the two types of data communication needed in a program that works with files?

3

In writing data to a file, which flow of data is correct?

4

In reading data from a file, which flow of data is correct?

77 Questions·
multiple choicemultiple correct

Sample Questions

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 practice questions are there for Files?
There are 77 questions on Files. Try the 4-question sample quiz on this page first; each answer shows an explanation when you tap it.

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.