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
-
tail -r logfile
-
tail -n 5 logfile
-
tail -f logfile
-
tail -x logfile
C
Correct answer
Explanation
The tail -f command follows the file growth in real-time, making it ideal for monitoring active log files. The other options, like -n 5 (displays only the last 5 lines once) or -r (reverses output), do not support continuous, real-time updates.
A
Correct answer
Explanation
Object repositories in QTP/UFT are exported and imported as XML files. XML format preserves the repository structure and object properties. TSR, MTS, and XLS are not standard formats for object repositories - TSR might be confused with test resource files, but repositories use XML.
-
/META-INF/classes
-
/classes
-
/WEB-INF/classes
-
/root/classes
C
Correct answer
Explanation
In a WAR file, compiled Java classes must be placed in the WEB-INF/classes directory, maintaining their package structure. Options A, B, and D do not follow the WAR specification. The WEB-INF directory contains private resources that cannot be directly accessed by clients, making it the correct location for class files.
-
/etc/vsftpd/deny
-
/etc/host/vsftpd.deny
-
/etc/host.deny
-
/etc/vsftpd/ftpusers
D
Correct answer
Explanation
vsftpd uses /etc/vsftpd/ftpusers as the user blacklist file - users listed here are denied FTP login. Options A and B are incorrect paths. Option C refers to /etc/host.deny which is for tcp wrappers, not vsftpd specifically.
A
Correct answer
Explanation
When defects are exported from Quality Center, they are saved as Excel (.xls) files, which can be opened in spreadsheet applications for further analysis.
A
Correct answer
Explanation
The CLOSE WITH LOCK statement in COBOL closes the file and places a lock on it, preventing the same program from opening it again. This is a specific COBOL file handling feature for controlling file access within a program. The statement does prevent further access by the same program.
A,B,C
Correct answer
Explanation
The three primary types of Virtual Storage Access Method (VSAM) files are Key-Sequenced Data Sets (KSDS), Entry-Sequenced Data Sets (ESDS), and Relative Record Data Sets (RRDS). The option 'asds' is not a recognized VSAM dataset type and is a fabricated distractor in this context.
-
Backup file
-
Audio file
-
Animation/movie file
-
MS Encarta document
A
Correct answer
Explanation
The .BAK extension is universally used for backup files across operating systems. When programs auto-save or create backups, they often use this extension. It indicates that the file is a backup copy of another file, typically with the same name but different extension.
-
WordPerfect Document file
-
MS Office document
-
Animation/movie file
-
image file
C
Correct answer
Explanation
The .MPG (or .MPEG) extension refers to video files - specifically MPEG (Moving Picture Experts Group) compressed video format. These are animation/movie files that use MPEG compression for efficient storage and transmission of video content.
-
Image file
-
System file
-
Hypertext related file
-
Image Color Matching Profile file
B
Correct answer
Explanation
The .INI extension stands for 'initialization' and is used for configuration files (system files) that store settings for applications and the Windows operating system. These plain text files contain key-value pairs that configure program behavior. They were especially common in older Windows versions.
-
Animation/movie file
-
Image file
-
MS Encarta document
-
Backup file
B
Correct answer
Explanation
The .JPG (or .JPEG) extension refers to image files using the JPEG (Joint Photographic Experts Group) compression format. This is one of the most common formats for photographic images on the web and digital devices due to its efficient compression.
-
Compressed Archive file
-
System file
-
Backup file
-
Audio file
B
Correct answer
Explanation
The .BAT extension refers to batch files - system files that contain a sequence of commands for execution by the command-line interpreter in DOS and Windows. These are script files that automate tasks. They are called 'batch' files because they execute commands in a batch (sequence).
-
Image file
-
Audio file
-
Animation/movie file
-
MS Office document
C
Correct answer
Explanation
.MOV is a file extension used by Apple's QuickTime framework for multimedia files. It stores video, audio, and text in separate tracks, allowing for flexible editing and playback.
-
A Jumper Programmed Graphic
-
A type of hard disk
-
A unit of measure for memory
-
A format for an image file
D
Correct answer
Explanation
JPG (or JPEG) is a widely used compressed image format that uses lossy compression to reduce file size while maintaining reasonable image quality. It's named after the Joint Photographic Experts Group who developed the standard and is commonly used for photographs and complex images.
-
Compressed Archive file
-
Screensaver
-
Programming/scripting related file
-
Hypertext related file
C
Correct answer
Explanation
The .CPP file extension is used for C++ source code files, which are programming files. C++ is a widely-used programming language, and .cpp files contain the actual code written by programmers. The other options are incorrect: .cpp is not a compressed archive, screensaver, or hypertext file.