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
-
gets()
-
getchar()
-
printf()
-
none of these
B
Correct answer
Explanation
The EOF() returns -1 as a result if the getchar() function does not return any character.
-
My Documents
-
My Computer
-
Recycle Bin
-
None of these
C
Correct answer
Explanation
This component is responsible for storing all deleted files by the user temporarily.
-
unordered file
-
ordered file
-
structured file
-
hashed file
-
non structured file
D
Correct answer
Explanation
Hash file is used for efficient searching.
-
file_put_string
-
file_put_contents
-
file_put_char
-
none of these
B
Correct answer
Explanation
file_put_contents() is the correct PHP function for writing a string to a file. It can write data to a file in a single call, optionally with flags like FILE_APPEND (to add to existing content) or LOCK_EX (to get an exclusive lock). This is simpler than the traditional fopen/fwrite/fclose sequence.
-
Destroy
-
Unlink
-
Both (1) & (2)
-
Unlink
-
ios:app
-
ios:trunc
-
ios:ate
-
ios:out
-
ios:in
C
Correct answer
Explanation
This mode is used for initial position to end of file.
-
Object file header
-
Object module
-
Index segment
-
Temporary segment
-
Data segment
E
Correct answer
Explanation
This object file format contains the binary representation of the data in the source file.
-
Object file header
-
Allocation
-
Macro
-
Relocation information
-
Mnemonic operation code
D
Correct answer
Explanation
This object file format identifies instructions and data words that depend on absolute addresses.
-
Sequential file
-
Relative file
-
Command file
-
Parameter file
-
Password file
B
Correct answer
Explanation
In this file, each record must have associated with it in integer key value that will help to identify the slot.
-
getc()
-
rewind()
-
isset()
-
fscanf()
-
fclose()
B
Correct answer
Explanation
This function accepts file pointer as a parameter and resets the position of the file pointer to the start of the file.
-
fscanf()
-
ftell()
-
ferror()
-
strcat()
-
abs()
B
Correct answer
Explanation
This function is used to obtain the current position of the file pointer.
-
Sequential file
-
Data file
-
Parameter file
-
Direct file
-
Archive file
D
Correct answer
Explanation
This file is similar to the relative file except that the key value need not be an integer.
-
Sequence file
-
Archive file
-
Indexed file
-
Parameter file
-
Password file
C
Correct answer
Explanation
In this file, no sequence is imposed on the storage of records in the data files, therefore, no overflow area is needed.
-
ferror()
-
fseek()
-
fscanf()
-
getc()
-
fopen()
B
Correct answer
Explanation
This file control functions is used to move the file pointer to the desired position within the file.
-
feof()
-
ferror()
-
fscanf()
-
getc()
-
fclose()
A
Correct answer
Explanation
This file function accepts file pointer as a parameter and returns either a non zero integer or a zero integer.