0

mainframe Online Quiz - 130

Description: mainframe Online Quiz - 130
Number of Questions: 20
Created by:
Tags: mainframe
Attempted 0/20 Correct 0 Score 0

What is the column range for Area A and Area B in COBOL:

  1. 1-6 and 7-72

  2. 8-11 and 12:72

  3. 1-15 and 16:80

  4. None of the above


Correct Option: B

What is the no. of bytes occupied for a variable if it’s defined as PIC S9(7) COMP-3 and PIC S9(10) COMP

  1. 2 and 3

  2. 4 and 5

  3. 7 and 6

  4. none of the above


Correct Option: D

AI Explanation

To determine the number of bytes occupied for a variable in COBOL, you need to consider the data type and the storage format.

In COBOL, the PIC clause is used to define the data type and format of a variable. The S9 format is used for signed numeric variables, and the COMP-3 format is used for packed decimal variables.

For the given variable definitions:

  1. PIC S9(7) COMP-3:

    • The S9(7) indicates a signed numeric variable with a maximum of 7 digits.
    • The COMP-3 format represents packed decimal, which stores each digit using half a byte (nibble).
    • For a packed decimal variable, each digit requires 4 bits (half a byte) of storage.
    • The number of digits in the variable (7) multiplied by the storage required per digit (4 bits) gives us the total storage required.
    • Therefore, the total storage required for this variable is 7 * 4 bits = 28 bits, which is equivalent to 4 bytes.
  2. PIC S9(10) COMP:

    • The S9(10) indicates a signed numeric variable with a maximum of 10 digits.
    • The COMP format represents binary storage, which uses full bytes to store the data.
    • For a binary variable, each byte can store 8 bits.
    • The number of digits in the variable (10) multiplied by the storage required per digit (1 byte) gives us the total storage required.
    • Therefore, the total storage required for this variable is 10 * 1 byte = 10 bytes.

Based on the above explanations, the correct answer is D) none of the above, as the given options do not match the correct number of bytes occupied for the variables.

If the access mode for any file is Dynamic, the file can be accessed both SEQUENTIALLT AND RANDOMLY

  1. True

  2. False


Correct Option: B

What are the acceptable types of the COBOL identifiers

  1. Alphanumeric

  2. Numeric

  3. Alphabetic

  4. all the above


Correct Option: D

Segment is the smallest information that DL/I can fetch.

  1. True

  2. False


Correct Option: A

Which of the following is not the mode of processing.

  1. BATCH DL/I MODE

  2. MPP MODE

  3. CMP MODE

  4. BMP MODE


Correct Option: C

Which procopt option is used to read the segment?

  1. D

  2. I

  3. G

  4. R


Correct Option: C

Which command code is used to retrieve a path?

  1. F

  2. L

  3. D

  4. U


Correct Option: C

What are the Two basic database organizations which DL/I provides?

  1. HIERARCHICAL INDEXED

  2. HIERARCHICAL SEQUENTIAL

  3. HIERARCHICAL DIRECT

  4. HIERARCHICAL ACCESS


Correct Option: B,C

What is true about Restart Call (XRST)?

  1. USED TO RESTART A PROGRAM AFTER ABNORMAL TERMINATION

  2. RESTART FROM SPECIFIC CHECKPOINT ID

  3. MUST BE THE FIRST CALL IN THE PROGRAM

  4. All of the above


Correct Option: D

Command Code ___ is used to set parentage to a specific segment in the hierarchy used in SSA's.

  1. D

  2. P

  3. F

  4. C


Correct Option: B

Modes of INSERT are?

  1. LOAD MODE

  2. INSERT MODE

  3. UPDATE MODE

  4. MODIFY MODE


Correct Option: A,C

What should be the status code if call specifies an invalid SSA?

  1. AC

  2. AJ

  3. AI

  4. AK


Correct Option: B

What statement can be used to send data to another MVS JES3 node ?

  1. CONNECT

  2. XMIT

  3. LINK

  4. TRANSMIT


Correct Option: B

AI Explanation

To answer this question, you need to understand how data can be sent to another MVS JES3 node.

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

Option A) CONNECT - This option is incorrect because the CONNECT statement is used to establish a connection between two remote nodes in a network, but it does not specifically send data.

Option B) XMIT - This option is correct because the XMIT statement is used to transmit data to another MVS JES3 node. It is commonly used to send JCL (Job Control Language) and other data sets to a remote node.

Option C) LINK - This option is incorrect because the LINK statement is used to link two or more program modules together, but it does not specifically send data to another MVS JES3 node.

Option D) TRANSMIT - This option is incorrect because there is no specific TRANSMIT statement in MVS JES3 that is used to send data to another node.

The correct answer is Option B) XMIT. This option is correct because the XMIT statement is used to transmit data to another MVS JES3 node.

What is the function of //CNTL statement ?

  1. Delimits the PROC control statements

  2. Identifies the control card library

  3. Marks the beginning of one or more program control statements

  4. None of the above


Correct Option: C

How can a JES3 operator command be entered through the jobstream?

  1. Through the OPERATOR statement

  2. Through the console statement

  3. Through the COMMAND statement

  4. Through the //** statement


Correct Option: D

In SMS datasets, what is the function of the DD MGMTCLAS keyword?

  1. Lookup a storage profile from the class library

  2. Specify a management class for a new dataset

  3. Alters the default storage profile for the dataset

  4. Begin a storage class definition block


Correct Option: B

What is the purpose of the DD KEYLEN parameter?

  1. Specify the length of a data set key in bytes

  2. Override the key length of an SMS defined VSAM dataset

  3. Override the key length specified in the dataset label

  4. All of the above


Correct Option: D

What is the maximum size of a 01 level item in COBOL II?

  1. 16667899

  2. 16777215

  3. 25879654

  4. 158742636


Correct Option: B

Can you call an OS VS COBOL pgm from a VS COBOL II pgm ?

  1. In non-CICS environment, it is possible

  2. In CICS, this is not possible

  3. Both of above

  4. None of above


Correct Option: A
- Hide questions