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
  1. flcommand()

  2. command()

  3. fcommand()

  4. fscommand()

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

fscommand() is the ActionScript function that enables communication between a SWF file and its host environment (Flash Player or web browser). It can send commands to JavaScript, control fullscreen mode, prevent scaling, and execute other host-specific operations. The other options (flcommand, command, fcommand) are not valid ActionScript functions.

Multiple choice technology operating systems
  1. The +x right is meaningless for directory

  2. To give permission to other users

  3. To move into that directory

  4. None of these

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

The execute (+x) permission on a directory grants the ability to enter (cd into) that directory and access files within it by name. Without +x on a directory, even if you have read/write permissions on files inside, you cannot traverse the directory path to reach those files. It does not grant permissions to other users specifically.

Multiple choice technology operating systems
  1. True

  2. False

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

Unix does allow spaces in file and directory names, though they require special handling with quotes or escaping. The statement claims Unix cannot use spaces, which is false. Option B is correct because Unix filenames can contain spaces, unlike the statement suggests.

Multiple choice technology testing
  1. name.tsr

  2. name.prs

  3. name.qrs

  4. name.trs

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

Recovery Scenario files in QTP (QuickTest Professional) use the .qrs file extension. QTP is a functional testing automation tool, and Recovery Scenarios are used to handle unexpected errors or events during test execution. The .qrs extension specifically identifies these recovery configuration files. The other extensions (.tsr, .prs, .trs) are not associated with QTP Recovery Scenarios.

Multiple choice technology
  1. stock.sdf

  2. stock.fdf

  3. stock

  4. stock.sds

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

The .sdf (SQL Database File) extension is used for storing structured data, including stock information in handheld systems. Other extensions like .fdf, .sds, or no extension are not standard database file formats used for this purpose in the context.

Multiple choice technology mainframe
  1. File is opened for input and an attempt is made To write to it (or Logic error).

  2. Mismatch in LRECL or BLOCKSIZE or RECFM between your COBOL pgn and the JCL ( or the dataset label).

  3. Attempted to open a file that is already open.

  4. File not found.

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

File status 92 indicates that the file was opened for input and a write operation was attempted, which is a logic error. The first option correctly describes this condition, so the stored answer is right.

Multiple choice technology mainframe
  1. 4

  2. 6

  3. 13

  4. 35

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

File status code 35 in COBOL indicates 'File not found' when attempting to open a file that doesn't exist. Other common file status codes include 00 (success), 04 (wrong length record), 06 (record duplicate key), 13 (file not found), and 30 (permanent error). The specific code 35 is the standard COBOL file status for a non-existent file on OPEN. This is a fundamental concept in COBOL file handling.

Multiple choice technology mainframe
  1. Password failure

  2. Resource not available

  3. Logic error

  4. No DD statement specified for this file

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

In COBOL file status codes, 92 indicates a logic error occurred during file processing. This is a catch-all error code for problems that stem from programming logic rather than physical file issues or resource constraints.

Multiple choice technology mainframe
  1. An OPEN statement was attempted for a file in the open mode

  2. A CLOSE statement was attempted for a file not in the open mode

  3. An OPEN statement was attempted on a file previously closed with lock

  4. The execution of a WRITE statement was attempted on a file not open in the I-O, output, or extend mode

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

File status 41 indicates that an OPEN statement was attempted for a file that is already in the open mode. This is a logical error because a file cannot be opened again while it's already open - it must be closed first before being reopened.

Multiple choice technology programming languages
  1. pfile is a binary file

  2. spfile is a binary file

  3. spfile is a text file

  4. pfile is a binary file ; spfile is a text file

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

SPFILE (Server Parameter File) is a binary file stored on the server that enables persistent parameter changes. PFILE (Parameter File) is a text-based initialization file. The binary nature of SPFILE allows Oracle to read it more efficiently and make changes that survive restarts.