Skip to main content
Chapter 11 of 13
Flashcards

File handling — Flashcards

Gujarat Board · Class 12 · Computer Studies

48 flashcards for File handling (Gujarat Board Class 12 Computer Studies) to test yourself on key terms and facts.

48 flashcards3 formulas & key relations5 concepts

Interactive on Super Tutor

Studying File handling? 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.

48 Flashcards·
File basicsStorage typesFile classFile class constructorsFile methods
Card 1File basics

What is a computer file in Java programming?

Answer

A computer file is a collection of data stored on a non-volatile device. Files are kept on permanent storage such as hard disks, USB drives, optical disks, and compact discs, so the data remains even …

Card 2File basics

Why are files called persistent data?

Answer

Data stored in files is called persistent data because it stays stored on non-volatile storage and is not lost when the computer is switched off.

Card 3Storage types

Differentiate volatile storage and non-volatile storage.

Answer

Volatile storage is temporary storage in RAM, so values are lost when the computer is shut down. Non-volatile storage is permanent storage on devices like disks, so data remains even when power is los…

Card 4File class

What is the File class in java.io?

Answer

The File class encapsulates information about the properties of a file or a directory. It can create, rename, and delete files or directories, and it can access attributes such as permissions, length,…

Card 5File class

Does creating a File object mean the file already exists?

Answer

No. Creating a File object only creates a reference to a file or directory path. It does not prove that the file or directory exists on the disk.

Card 6File class

What can the File class NOT do?

Answer

The File class does not provide methods to read from a file or write into a file. Reading and writing are done by stream classes.

Card 7File class constructors

State the constructors of the File class.

Answer

File class constructors: File(String path); File(String directory_path, String file_name); File(File directory, String file_name)…

Card 8File methods

What does boolean exists() do?

Answer

boolean exists() returns true if the file or directory exists, otherwise false.

+40 more flashcards

Practise All

Frequently Asked Questions

What are the important topics in File handling for Gujarat Board Class 12 Computer Studies?
Key topics in File handling include Files, storage, and file types, File class in java.io, Streams and stream categories, Writer, Reader, FileWriter, and FileReader. Study these first, then practise questions on each for the Gujarat Board Class 12 board exam.
How many flashcards are available for File handling?
There are 48 flashcards for File handling covering key definitions, facts and ideas. A few sample cards are shown 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 File handling chapter — start free.

Quizzes, flashcards, an AI doubt solver and a study plan for Gujarat Board Class 12 Computer Studies. Free to start, no card needed.