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

Multiple choice technology programming languages
  1. File parameters

  2. Performance parameters

  3. Space Parameters

  4. Volume Parameters

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

Performance parameters like BUFSP (buffer space), STRNO (number of strings), and CISZ (control interval size) are defined during VSAM cluster creation and cannot be overridden during access. These are fundamental to the dataset's physical structure and performance characteristics.

Multiple choice technology programming languages
  1. VSAM File

  2. Tape File

  3. none of above

  4. Both a and b

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

To answer this question, the user needs to know about the LIKE parameter in mainframe programming.

The LIKE parameter is used to create a new file that has the same record-layout as an existing file. This is useful when you want to create a new file with the same structure as an existing file, but with different data.

Now, let's go through each option and explain why it is right or wrong:

A. VSAM File: This option is correct. You can use the LIKE parameter to create a new VSAM file that has the same record-layout as an existing VSAM file.

B. Tape File: This option is incorrect. You cannot use the LIKE parameter to create a new tape file. Tape files are typically used for backup and archival purposes, and do not have a record-layout like VSAM files.

C. None of above: This option is incorrect. As explained above, option A is correct.

D. Both a and b: This option is incorrect. Although option A is correct, option B is not.

Therefore, The Answer is: A. VSAM File

Multiple choice technology programming languages
  1. INZUTILB

  2. IKJEFT1A

  3. ADRDSSU

  4. XUE10200

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

ADRDSSU is the IBM DFSMSdfp utility used for data backup and restore operations. It performs fast backup using DSS (Data Storage and Storage) dump functionality, significantly reducing backup time compared to traditional utilities. INZUTILB is incorrect, IKJEFT1A is TSO, and XUE10200 is not a standard backup utility.

Multiple choice technology programming languages
  1. LRECL

  2. RECFM

  3. None of the attributes can be changed

  4. All the attributes can be changed

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

When transmitting files to remote hosts (especially in mainframe contexts using FTP or similar protocols), file attributes like LRECL (logical record length) and RECFM (record format) can indeed be changed or translated during transfer. The transmission process can modify these characteristics to match the target system's requirements or data format conventions.

Multiple choice technology programming languages
  1. GET

  2. PUT

  3. EXIT

  4. BYE

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

To solve this question, the user needs to know what FTP is and what parameters it uses. FTP (File Transfer Protocol) is a standard network protocol used to transfer files from one host to another over the Internet.

Now, let's go through each option and explain why it is right or wrong:

A. GET: This option is a valid FTP parameter. It is used to retrieve a file from a remote server.

B. PUT: This option is a valid FTP parameter. It is used to upload a file to a remote server.

C. EXIT: This option is not a valid FTP parameter. It is a command to exit the FTP client.

D. BYE: This option is a valid FTP parameter. It is used to terminate an FTP session.

Therefore, the answer is:

The Answer is: C

Multiple choice technology programming languages
  1. (1) Use the SYNCHRONIZED clause for the file.

  2. (2) Use the EXTERNAL clause for the file.

  3. (3) Use GLOBAL clause for the file.

  4. (4) Use COMMON clause for the file.

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

The EXTERNAL clause in COBOL allows a file connector to be shared and accessed by multiple independent programs within the same run unit, making it a common file.

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
A Correct answer
Explanation

In COBOL, the SELECT statement (and its variants like EFSELECT) is part of the FILE-CONTROL paragraph within the INPUT-OUTPUT SECTION of the ENVIRONMENT DIVISION. This is where files are assigned to external devices and file organizations are specified. Options B and C are DATA DIVISION sections, and option D is a different division entirely.

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.