Computer Knowledge
Computer File Systems
1,516 Questions
Computer file systems dictate how data is stored, organized, and retrieved on storage devices. Important concepts include file allocation tables, access mechanisms, and various formats like sequential and video files. Candidates preparing for banking and government exams should practice these fundamentals thoroughly.
File access mechanismsVideo and password filesFile extensionsFile allocation tableSystem metadata
Computer File Systems Questions
-
256
-
255
-
254
-
253
-
None of these
A
Correct answer
Explanation
Yes, most of the operating systems allow users to use up to 256 characters.
-
TXT.EXE
-
WINDOWS.EXE
-
WINWORD.EXE
-
WORDPAD.EXE
D
Correct answer
Explanation
WORDPAD.EXE is the executable file that launches the WordPad application in Windows. WordPad is a basic word processor that comes pre-installed with Windows, more advanced than Notepad but less feature-rich than Microsoft Word. The other options listed are incorrect: TXT.EXE is not a standard Windows executable, WINDOWS.EXE would be the OS core, and WINWORD.EXE launches Microsoft Word.
-
.SCS
-
.SCR
-
.SCP
-
None of these
B
Correct answer
Explanation
.SCR is the standard file extension for Windows screen saver files. These are essentially executable files that run when the system is idle, with the .SCR extension identifying them as screen savers to the system.
B
Correct answer
Explanation
Windows supports filenames up to 255 characters, excluding the drive letter, path, and extension. This is a limitation of the FAT/NTFS file systems and has been a consistent feature of Windows file management.
B
Correct answer
Explanation
.BMP (Bitmap) is the default file format for images created in MS Paint. This uncompressed image format has been the standard output format for Paint since the early versions of Windows.
-
Reliability
-
Strong name
-
Assembly name
-
List of all files in the assembly
-
Windows forms
B
Correct answer
Explanation
This assembly manifest content represents the public key from the publisher.
B
Correct answer
Explanation
FASTA format sequence files always begin with a '>' (greater-than) character followed by a unique identifier and description. This header line introduces each sequence record and distinguishes it from the actual nucleotide or amino acid sequence data that follows.
-
They can be easily read and written.
-
They need a special program to read and write.
-
Processing of binary files is slow.
-
Binary data files are damaged easily.
B
Correct answer
Explanation
Binary data files need a special program to read and write. Because binary data files contain only 0 and 1.
-
iostream
-
ofstream
-
ifstream
-
iofstream
C
Correct answer
Explanation
The ifstream class is used to create an object for opening a file to read.
-
Name the file, open the file and close the file
-
Open the existing file, read/write the file and close the file
-
Open the file, read the file and write a file
-
Create a file, open the file and close the file
B
Correct answer
Explanation
The steps to process a file in C++ are
- Open the file
- Read or write the file
- Close the file
-
tellme() and giveme()
-
tellp() and tellg()
-
put() and get()
-
seekp() and seekg()
B
Correct answer
Explanation
The current position of the file pointer is given by the tellp() and tellg() member functions of ostream and istream respectively.
D
Correct answer
Explanation
The open mode in, out and ate are the valid modes for reading, writing and appending respectively. There is no any ale mode in C++.
A
Correct answer
Explanation
The open mode “ate” is used to open the file by position the file pointer at the end of file.
-
filepointer.seekg(0L,ios::start);
-
filepointer.seekg(1L,ios::beg);
-
filepointer.seekg(0L,ios::beg);
-
filepointer.seekg(0L,io::beg);
C
Correct answer
Explanation
The function seekg() is used to position the file pointer at a specific place.
So, the statement filepointer.seekg(0L,ios::beg); positions the file pointer at the beginning of the file.
-
ios::in
-
ios::out
-
ios::noreplace
-
ios::nocreate
D
Correct answer
Explanation
The file opening mode ios::nocreate gives the error if the file does not already exist.