0

mainframe Online Quiz - 113

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

INSPECT MY-STRING TALLYING TALLY-COUNT FOR ALL "A". MY-STRING PIC X(17) VALUE "A P J ABDUL KALAM". TALLY-COUNT PIC 9(2) VALUE 05. VALUE IN TALLY-COUNT IS

  1. 03

  2. 09

  3. 08

  4. none of the above


Correct Option: B

INSPECT MY-STRING TALLYING TALLY-COUNT FOR LEADING "A" MY-STRING PIC X(17) VALUE "A P J ABDUL KALAM". TALLY-COUNT PIC 9(1) VALUE ZERO. VALUE IN TALLY-COUNT IS

  1. 01

  2. 4

  3. 3

  4. none of the above


Correct Option: D

INSPECT MY-STRING TALLYING TALLY-COUNT FOR CHARACTERS MY-STRING PIC X(17) VALUE "A P J ABDUL KALAM". TALLY-COUNT PIC 9(2) VALUE IS 02. VALUE IN TALLY-COUNT IS

  1. 19

  2. 17

  3. 9

  4. 13


Correct Option: A

INSPECT MY-STRING TALLYING TALLY-1 FOR ALL 'A' BEFORE INITIAL SPACETALLY-2 FOR ALL 'A' AFTER INITIAL SPACEMY-STRING PIC X(17) VALUE "A P J ABDUL KALAM".TALLY-1 PIC 9(1) VALUE IS ZERO.TALLY-2 PIC 9(1) VALUE IS 5.VALUE IN TALLY-1 & TALLY-2 ARE

  1. 1,3

  2. 1,8

  3. 3,1

  4. none of the above


Correct Option: B

AI Explanation

To determine the values in TALLY-1 and TALLY-2, let's analyze the given code step by step.

The code defines two variables, MY-STRING and TALLY-1, and TALLY-2, with the following initial values:

  • MY-STRING is a 17-character alphanumeric string with the value "A P J ABDUL KALAM".
  • TALLY-1 is a 1-digit numeric variable with an initial value of zero.
  • TALLY-2 is also a 1-digit numeric variable with an initial value of 5.

The code then executes the INSPECT statement, which is used to count the occurrences of the letter 'A' in MY-STRING and update the values in TALLY-1 and TALLY-2 accordingly.

The INSPECT statement has the following format: INSPECT TALLYING FOR ALL BEFORE INITIAL SPACE TALLYING FOR ALL AFTER INITIAL SPACE.

In this case, the INSPECT statement is applied to MY-STRING, and the character to be counted is 'A'. The counts are stored in TALLY-1 and TALLY-2, respectively.

Let's go through each option to determine the correct values in TALLY-1 and TALLY-2:

Option A) 1,3 - This option is incorrect because TALLY-1 should count the occurrences of 'A' before the initial space, and TALLY-2 should count the occurrences of 'A' after the initial space. However, the given values in this option are reversed.

Option B) 1,8 - This option is the correct answer. TALLY-1 should count the occurrences of 'A' before the initial space, which is 1 in this case. TALLY-2 should count the occurrences of 'A' after the initial space, which is 8 in this case.

Option C) 3,1 - This option is incorrect because the values in TALLY-1 and TALLY-2 are reversed. TALLY-1 should count the occurrences of 'A' before the initial space, not after.

Option D) none of the above - This option is incorrect because the correct answer is option B, as explained above.

Therefore, the correct values in TALLY-1 and TALLY-2 are 1 and 8, respectively.

When to use DISP=MOD

  1. For both sequential and partitioned dataset to be extended or created

  2. Only for existing datasets to be extended

  3. For all secured sequential dataset to be extended

  4. Only for sequential datasets to be extended or created


Correct Option: D

Which of the following equations are correct?

  1. DISP=(,PASS) is equivalent to DISP=(NEW,PASS,KEEP)

  2. DISP=(, ,KEEP) is equivalent to DISP=(NEW,DELETE,KEEP)

  3. DISP=(, ,CATLG) is equivalent to DISP=(OLD,CATLG,CATLG)

  4. DISP=(OLD, , ) is equivalent to DISP=(OLD,KEEP,KEEP)


Correct Option: B,D

What is the maximun number of generations that a GDG can have?

  1. 253

  2. 254

  3. 255

  4. 256


Correct Option: C
  1. IDCAMS

  2. SYNCSORT

  3. INSYNC

  4. ICAMS


Correct Option: C

Which statement marks the end of a proc?

  1. PENT

  2. PEND

  3. PROCEND

  4. /*


Correct Option: B

Shows the graphical view of jobs flow in the table selected from the given dataset

  1. G

  2. P

  3. M

  4. S


Correct Option: A

Under Option 8, by which library we can see the calender definition

  1. TPD1.IOA.CAL

  2. TPD.IOA.CAL

  3. Schedule library for the particular application

  4. Demand library for the particular application


Correct Option: B

QWP Means

  1. Qwest job panel

  2. Qw Panel

  3. Qwest schedule Panel

  4. Qwest Panel


Correct Option: D
  1. RSG.CTM.CMEM

  2. RSG1.CTM.CMEM

  3. RSG1.CMEM.CTM

  4. RSG.CMEM.CTM


Correct Option: B

. How many clustering indexes are allowed for a table?

  1. Two

  2. Three

  3. Four

  4. One


Correct Option: D

What is meant by local DB2?

  1. The DB2 application server in which the application's plan is bound is known as local DB2.

  2. The DB2 application server in which the application's package is bound is known as local DB2.

  3. The DB2 application server in which the application's load is bound is known as local DB2.

  4. None of the Above


Correct Option: A
  1. No, Application program’s performance will be reduced

  2. Yes, Application program’s performance will be increased

  3. Not related

  4. None of the Above


Correct Option: A
- Hide questions