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 programming languages
  1. (1) FILE-CONTROL

  2. (2) FILE SECTION

  3. (3) WORKING-STORAGE SECTION

  4. (4) Procedure division

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

In COBOL, the file description entry (FD) for a file like EFFILE is defined within the FILE SECTION of the DATA DIVISION, whereas the FILE-CONTROL paragraph resides in the ENVIRONMENT DIVISION.

Multiple choice technology programming languages
  1. (1) Even though the main program does not contain any input or output statements, it can reference the record area of the file.

  2. (2) Each subprogram can control a single input or output function, such as OPEN or READ.

  3. (3) Each program has access to the file.

  4. (4) All the above

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

To answer this question, the user needs to have knowledge about the concept of using an external file.

Option A is incorrect because it does not fully explain the benefit of using an external file. While it is true that the main program can reference the record area of the file even if it does not have input or output statements, this is not the main benefit of using an external file.

Option B is incorrect because it is a specific benefit that applies only to subprograms. It does not explain the general benefit of using an external file.

Option C is incorrect because it is too general. It does not explain the specific benefit of using an external file.

Option D is the correct answer because it includes all the benefits of using an external file. These include the ability for the main program to access the record area of the file, the ability for subprograms to control specific input or output functions, and the fact that multiple programs can have access to the same file.

Therefore, the answer is: D. (4) All the above.

Multiple choice technology platforms and products
  1. DEFAULT, INSTANCE & START

  2. INSTANCE, DEFAULT & START

  3. START, INSTANCE, DEFAULT

  4. START, DEFAULT, INSTANCE

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

During SAP system startup, profile files are read in the order: START profile first (contains kernel parameters and startup information), then DEFAULT profile (contains system-wide default parameters), and finally INSTANCE profile (contains instance-specific parameters). This hierarchical order allows more specific profiles to override settings from more general ones. Option D correctly represents this sequence.

Multiple choice technology mainframe
  1. successful completion

  2. Record or file not found

  3. End of file reached

  4. dupliacate key

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

VSAM file status code 10 indicates that the end of file has been reached during a read operation. This is a normal condition when sequentially reading through all records in a file.

Multiple choice technology programming languages
  1. FILEMAN allows us to update the file where READ doesn't

  2. READ allows us to update the file whereas FILEMAN doesn't

  3. Updates can be allowed using both FILEMAN as well as READ

  4. Updates cannot be done using FILEMAN as well as READ

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

In Model 204, opening a file with FILEMAN privileges allows both reading and updating/modifying the file, whereas opening it with READ privileges restricts access to read-only operations.

Multiple choice technology programming languages
  1. 10

  2. 0

  3. Nothing will be printed

  4. Error

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

The code defines a found set A with 10 records but contains no PRINT statement - only END. Without an explicit print command, M204 will not output anything even though records are found. Options A and B are incorrect because nothing is printed.

Multiple choice technology programming languages
  1. A file group is a collection of physically distinct files that appear to the end user as multiple logical entity.

  2. A file group is a collection of logically distinct files that appear to the end user as single logical entity.

  3. A file group is a collection of physically distinct files that appear to the end user as single logical entity.

  4. A file group is a collection of logically distinct files that appear to the end user as multiple logical entity.

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

In database systems like SQL Server, a filegroup is a logical grouping of physically distinct database files. This abstraction allows database administrators to manage physical storage while presenting a single logical entity to users.

Multiple choice technology programming languages
  1. With the #include preprocessor command

  2. Adding the file’s directory to @INC and then passing the filename to require.

  3. Both A & B

  4. None of the above

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

Perl offers multiple ways to include code from other files. The #include preprocessor command works like C-style includes, and adding the file's directory to @INC then using require is the dynamic Perl approach. Both methods are valid for code inclusion in different contexts.