FUNDAMENTALS OF COMPUTER

UNDERSTANDING COMPUTER FILES

COMPUTER FILES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
All programs and data are “written” into a ____
A
library
B
folder
C
directory
D
file
Explanation: 

Detailed explanation-1: -A file is the common storage unit in a computer, and all programs and data are “written” into a file and “read” from a file. A folder holds one or more files, and a folder can be empty until it is filled. A folder can also contain other folders, and there can be many levels of folders within folders.

Detailed explanation-2: -Java FileWriter class in java is used to write character-oriented data to a file as this class is character-oriented class because of what it is used in file handling in java.

Detailed explanation-3: -Program files : These are the file which are by default present in the software about its use, help and its source code. These contain the source program of executable files. Data files: These are the files that are stored by the user in a software after working on it.

Detailed explanation-4: -Java FileWriter class is used to write character-oriented data to a file. It is character-oriented class which is used for file handling in java. Unlike FileOutputStream class, you don’t need to convert string into byte array because it provides method to write string directly.

Detailed explanation-5: -The correct answer is Hard Disk. The place where programs, files, and data are stored in the computer is called Hard Disk. An HDD is a data storage device that lives inside the computer.

There is 1 question to complete.