Computer Knowledge
Computer File Systems
1,249 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
A
Correct answer
Explanation
In AS/400, logical files are views over physical files. When you delete a record through a logical file, the underlying physical file's record is also deleted because logical files don't store data independently - they reference the physical file's data. This is fundamental to how logical files work.
-
android.permission.VIDEO
-
android.permission.MEDIA
-
android.permission.CAMERA
-
all of the above
C
Correct answer
Explanation
To access camera hardware in Android, the application manifest must declare the android.permission.CAMERA permission. The permissions android.permission.VIDEO and android.permission.MEDIA do not exist or do not directly grant direct access to the camera hardware.
-
Default file
-
Manifest file
-
random file
-
access file
B
Correct answer
Explanation
The AndroidManifest.xml file is where applications declare permissions needed to access resources from other applications or device features. Default file, random file, and access file are not standard Android manifest components. The manifest is read at install time to grant requested permissions.
-
touch <file_name>
-
truncate <file_name>
-
> <file_name>
-
mkzero <file_name>
C
Correct answer
Explanation
The redirect operator '>' followed by a filename truncates the file to zero bytes if no content is written before it. The 'touch' command creates or updates timestamps, 'truncate' is not a standard Unix command, and 'mkzero' does not exist.
-
creates a new zero byte file
-
truncates a file
-
chages the access timestamp of the existing file
-
deletes a file
A,C
Correct answer
Explanation
The touch command creates a new zero-byte file if it doesn't exist, and updates the access and modification timestamps if the file exists. It does not truncate file contents or delete files.
D
Correct answer
Explanation
LoadRunner uses .usr files to define virtual user scripts that can be organized into groups. These files contain the recorded or scripted user actions that will be replayed during load testing scenarios. Other file extensions serve different purposes - .lrr is for results, .lra for analysis files, and .lrs for scenario files.
-
Import
-
Delete
-
Checkin
-
Update
-
View
-
Export
A,C,F
Correct answer
Explanation
The Fileselector applet in Documentum is used for file operations: Import (bringing files in), Checkin (checking documents into the repository), and Export (taking files out). It's not used for Delete, Update, or View operations which use different interfaces.
-
FileStream fp= new FileStream("c:\test.txt", FileMode.Create, FileAccess.Write,FileShare.Read);
-
FileStream fp= new FileStream("c:\test.txt", "rws");
-
FileStream fp= new FileStream("c:\test.txt", FileMode.ReadWriteShared);
-
FileStream fp= new FileStream("c:\test.txt", FileMode.ReadWrite, FileAccess.Shared);
A
Correct answer
Explanation
The C _tfopen with mode 'rws' maps to FileStream with FileMode.Create (creates new file), FileAccess.Write (write access), and FileShare.Read (allows others to read). The 'rws' mode combines read/write/shared permissions.
-
1> filename
-
2> /dev/null
-
&> filename
-
2> filename
D
Correct answer
Explanation
In Unix and Linux shells, file descriptor 2 represents standard error (stderr). Using 2> filename redirects standard error output to the specified file, whereas 1> handles standard output and &> captures both.
-
less filename
-
rm filename
-
dl filename
-
touch filename
B
Correct answer
Explanation
The 'rm' command removes/deletes files. 'less' views files, 'touch' creates empty files, and 'dl' is not a standard command. Option B is correct.
-
touch filename
-
pico filename
-
less filename
-
more filename
A
Correct answer
Explanation
The 'touch' command creates an empty file without opening it. 'pico', 'less', and 'more' are file viewers/editors that open the file. Option A is correct.
-
With in Repository
-
From one Repository to another Repository
-
All the above
-
None
C
Correct answer
Explanation
In Informatica PowerCenter, folders can be copied both within the same repository and from one repository to another. Within a repository, you can create copies of folders for versioning or organizational purposes. Across repositories, you can copy folders for migration between development, testing, and production environments. The 'All the above' option correctly captures both scenarios.
A
Correct answer
Explanation
Informatica PowerCenter allows creating header and footer rows in target flat files. This can be configured through session properties and the target flat file definition, enabling you to output header rows at the beginning and footer rows at the end of the file.
-
XML File
-
Delimited
-
Fixed WIdth
-
All the above
-
Datafile
-
Device
-
Data Object
-
Material
B
Correct answer
Explanation
In Sybase, the physical storage file used to store database data is called a 'device.' A device is the actual operating system file or disk partition allocated to Sybase for data storage. The other options are incorrect: 'Datafile' is not standard Sybase terminology, 'Data Object' refers to logical structures, and 'Material' is not a Sybase storage term.