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.
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.
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 …
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.
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…
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,…
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.
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.
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)…
What does boolean exists() do?
Answer
boolean exists() returns true if the file or directory exists, otherwise false.
+40 more flashcards
Practise AllFrequently Asked Questions
What are the important topics in File handling for Gujarat Board Class 12 Computer Studies?
How many flashcards are available for File handling?
Sources & Official References
Content is aligned to the official syllabus. Refer to the board website for the latest curriculum.
More resources for File handling
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.