In general which of following type of access is least efficient in VSAM

  1. (1) Sequential Access

  2. (2) Random Access

  3. (3) Dynamic Access

  4. (4) Depends on the datat in the file


Correct Option: B

AI Explanation

To answer this question, we need to understand the different types of access methods in VSAM and their efficiency.

Option A) Sequential Access - This option is incorrect. Sequential access is an efficient access method in VSAM because it allows for sequential reading or writing of records in the order they are stored in the file.

Option B) Random Access - This option is correct. Random access in VSAM involves directly accessing a specific record using an index or key. This type of access requires additional processing time to locate the desired record, making it less efficient compared to sequential access.

Option C) Dynamic Access - This option is incorrect. Dynamic access is a combination of sequential and random access, allowing for both sequential and direct access to records. It is an efficient access method as it provides flexibility in accessing the data.

Option D) Depends on the data in the file - This option is incorrect. The efficiency of access in VSAM does not solely depend on the data in the file. It depends on the access method used, as discussed in options A, B, and C.

Therefore, the correct answer is Option B) Random Access. Random access is the least efficient access method in VSAM due to the additional processing time required to locate specific records.

Find more quizzes: