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

Multiple choice technology web technology
  1. Required, required

  2. Required, Optional

  3. Optional, Optional

  4. Optional, Required

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Web.config files are optional - applications can run without them using inherited settings. Machine.config is required as it defines the base configuration for the entire .NET framework on a machine. This hierarchical design allows optional application-specific overrides of required framework-level defaults.

Multiple choice technology databases
  1. CRTPF

  2. CHGPFM

  3. CHGPF

  4. Can't be done so

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The CHGPF (Change Physical File) command is used to modify a physical file's structure, including adding new fields, without deleting existing records. CHGPFM changes file attributes but not structure. CRTPF creates a new file (which would be empty). The operation preserves existing data while allowing schema evolution.

Multiple choice technology databases
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

conio.h (Console Input/Output) is NOT an ANSI/ISO standard C header file. It was originally developed for DOS and Microsoft operating systems. Functions like clrscr(), getch(), and getche() from conio.h are platform-specific and not part of the standard C library, which uses stdio.h for input/output operations.

Multiple choice technology programming languages
  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

conio.h (Console Input/Output) is NOT an ANSI/ISO standard C header file. It was originally developed for DOS and Microsoft operating systems. Functions like clrscr(), getch(), and getche() from conio.h are platform-specific and not part of the standard C library, which uses stdio.h for input/output operations.

Multiple choice technology embedded technologies
  1. android.permission.VIDEO

  2. android.permission.MEDIA

  3. android.permission.CAMERA

  4. all of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology embedded technologies
  1. Default file

  2. Manifest file

  3. random file

  4. access file

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. touch <file_name>

  2. truncate <file_name>

  3. > <file_name>

  4. mkzero <file_name>

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. creates a new zero byte file

  2. truncates a file

  3. chages the access timestamp of the existing file

  4. deletes a file

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. .lrr

  2. .lra

  3. .lrs

  4. .usr

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. Import

  2. Delete

  3. Checkin

  4. Update

  5. View

  6. Export

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. FileStream fp= new FileStream("c:\test.txt", FileMode.Create, FileAccess.Write,FileShare.Read);

  2. FileStream fp= new FileStream("c:\test.txt", "rws");

  3. FileStream fp= new FileStream("c:\test.txt", FileMode.ReadWriteShared);

  4. FileStream fp= new FileStream("c:\test.txt", FileMode.ReadWrite, FileAccess.Shared);

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology programming languages
  1. less filename

  2. rm filename

  3. dl filename

  4. touch filename

Reveal answer Fill a bubble to check yourself
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.