0

programming languages Online Quiz - 236

Description: programming languages Online Quiz - 236
Number of Questions: 20
Created by:
Tags: programming languages
Attempted 0/20 Correct 0 Score 0
  1. System managed Buffering

  2. System managed buffer

  3. Service managed Buffering

  4. None of the above


Correct Option: A
  1. increases the number of Index buffers for random access

  2. increases the amount of virtual storage

  3. increases the number of Data buffers for sequential access

  4. All of the above


Correct Option: A
  1. Copy the data of VSAM file which has to be REORG into another dataset

  2. Delete the current VSAM dataset

  3. Define the VSAM dataset.

  4. All of the above


Correct Option: D
Explanation:

To answer this question, the user needs to have knowledge of VSAM (Virtual Storage Access Method) and the process of VSAM REORG.

The correct answer is:

D. All of the above

Explanation:

The process of VSAM REORG involves the following steps:

A. Copy the data of VSAM file which has to be REORG into another dataset: This step involves backing up the data in the VSAM file to another dataset before the REORG process can begin. This ensures that the data is not lost in case the REORG process fails.

B. Delete the current VSAM dataset: Once the backup is complete and verified, the original VSAM dataset can be deleted.

C. Define the VSAM dataset: After the original dataset has been deleted, a new VSAM dataset can be defined with the same name and attributes as the original dataset.

Therefore, all of the options listed above are correct steps that are involved in the process of VSAM REORG.

  1. for Backup/Recovery

  2. for increasing the speed

  3. for file backup

  4. All of the above


Correct Option: A
  1. Can only be used for VSAM datasets

  2. Dataset created by EXPORT command cannot have a sequential organization

  3. Dataset created by the IMPORT step is not processed until it has gone through corresponding EXPORT step

  4. Dataset created by EXPORT command can only have a sequential organization


Correct Option: A
  1. INFILE(ddname) | OUTDATASET(dsname)

  2. OUTFILE(ddname)| INDATASET(dsname)

  3. INFILE(ddname) | INDATASET(dsname)

  4. OUTFILE(ddname)| OUTDATASET(dsname)


Correct Option: D
  1. ERASE / NOERASE

  2. INHIBITSOURCE / NOINHIBITSOURCE

  3. NOINHIBITSOURCE / INHIBITSOURCE

  4. TEMPORARY / PERMANENT


Correct Option: C
  1. Write only Mode

  2. Read only Mode

  3. Read Write Mode

  4. All of the above


Correct Option: B

INHIBITSOURCE parameter specifies that the source dataset can be

  1. Write only Mode

  2. Read only Mode

  3. Read Write Mode

  4. All of the above


Correct Option: B

AI Explanation

To answer this question, we need to understand the purpose of the INHIBITSOURCE parameter.

The INHIBITSOURCE parameter is used in mainframe systems, particularly in JCL (Job Control Language), to specify the access mode for a source dataset.

Option A) Write only Mode - This option is incorrect because the INHIBITSOURCE parameter does not specify write-only mode for the source dataset. It is used to control the read access to the source dataset.

Option B) Read only Mode - This option is correct. The INHIBITSOURCE parameter specifies that the source dataset can only be accessed in read-only mode. This means that programs or processes can read the data from the source dataset but cannot modify or write to it.

Option C) Read Write Mode - This option is incorrect because the INHIBITSOURCE parameter does not allow read-write access to the source dataset. It restricts the access to read-only mode.

Option D) All of the above - This option is incorrect because the INHIBITSOURCE parameter does not allow write-only or read-write access to the source dataset. It only allows read-only access.

Therefore, the correct answer is B) Read only Mode.

  1. Write only Mode

  2. Read only Mode

  3. Read Write Mode

  4. All of the above


Correct Option: B
  1. ERASE operation is complete

  2. NOERASE operation is complete

  3. IMPORT operation is complete

  4. EXPORT operation is complete


Correct Option: C

TEMPORARY parameter directs VSAM to retain the source dataset after

  1. ERASE operation is complete

  2. NOERASE operation is complete

  3. IMPORT operation is complete

  4. EXPORT operation is complete


Correct Option: D

AI Explanation

To answer this question, you need to understand the purpose of the TEMPORARY parameter in VSAM.

The TEMPORARY parameter in VSAM is used to specify that a source dataset should be retained after a particular operation is complete. It allows the dataset to be available for other operations or processes.

Let's go through each option to understand why it is correct or incorrect:

Option A) ERASE operation is complete - This option is incorrect because the TEMPORARY parameter does not retain the source dataset after an ERASE operation. The purpose of the ERASE operation is to delete the data from the dataset, so there is no need to retain it.

Option B) NOERASE operation is complete - This option is incorrect because the TEMPORARY parameter does not retain the source dataset after a NOERASE operation. The NOERASE option is used to prevent the dataset from being erased during certain operations, but it does not affect the retention of the dataset.

Option C) IMPORT operation is complete - This option is incorrect because the TEMPORARY parameter does not retain the source dataset after an IMPORT operation. The IMPORT operation is used to copy data into a VSAM dataset, but it does not affect the retention of the source dataset.

Option D) EXPORT operation is complete - This option is correct because the TEMPORARY parameter directs VSAM to retain the source dataset after an EXPORT operation is complete. The EXPORT operation is used to copy data from a VSAM dataset to an external file, and the TEMPORARY parameter ensures that the source dataset is not deleted after the operation.

The correct answer is D) EXPORT operation is complete. This option is correct because the TEMPORARY parameter directs VSAM to retain the source dataset after an EXPORT operation is complete.

CIMODE parameter allows you to process target dataset in

  1. Control Interval

  2. Cascade Interval

  3. Record Mode

  4. None of the above


Correct Option: C
Explanation:

To solve this question, the user needs to know about the CIMODE parameter in mainframe systems.

The answer is: C. Record Mode

Explanation:

The CIMODE parameter is used in IBM mainframe systems to specify the mode of processing for the target dataset. It can have one of the following values:

  • CI (Control Interval) mode: This mode processes the target dataset in control interval format. Control intervals are groups of records that are read and written as a single unit. This mode is useful for datasets with a high number of records.

  • CA (Cascade) mode: This mode processes the target dataset in cascade mode, which means that records are read and written in groups of control areas. Control areas are groups of control intervals that are read and written as a single unit. This mode is useful for datasets with a high number of control intervals.

  • Record mode: This mode processes the target dataset in record mode, which means that records are read and written one at a time. This mode is useful for datasets with a low number of records.

Since the question asks which mode allows the processing of the target dataset in a record mode, the correct answer is C. Record Mode. Option A is incorrect because it refers to control interval mode, and option B is incorrect because it refers to cascade mode. Option D is incorrect because one of the above options is correct.

  1. INTOEMPTY

  2. OBJECTS

  3. Only b

  4. Both a and b


Correct Option: D
Explanation:

To solve this question, the user needs to have knowledge of the IMPORT command in SQL.

The correct answer is:

D. Both a and b

Explanation:

The IMPORT command is used to import data from an external file into a SQL database. The IMPORT command has several parameters, one of which is the "PARAMETERS" parameter. The "PARAMETERS" parameter has several subcommands, including "INTOEMPTY" and "OBJECTS".

  • The "INTOEMPTY" subcommand is used to import data into an empty table.
  • The "OBJECTS" subcommand is used to import data into an existing table.

Therefore, option D is correct because both subcommands "INTOEMPTY" and "OBJECTS" are subcommands of the IMPORT parameter.

  1. IMPORT INFILE(DD1) OUTFILE(DD2) IEMPTY

  2. IMPORT INFILE(DD1) OUTFILE(DD2) INTOEMPTY

  3. IMPORT INFILE(DD1) OUTFILE(DD2) IETY

  4. IMPORT INFILE(DD1) OUTFILE(DD2) EMPTY


Correct Option: A
  1. Reduce DASD free space fragmentation

  2. Copy or move data sets from one DASD device to another or dump

  3. Restore backup copies of entire DASD volumes

  4. Increase File storage


Correct Option: D
- Hide questions