0

mainframe Online Quiz - 14

Description: mainframe Online Quiz - 14
Number of Questions: 20
Created by:
Tags: mainframe
Attempted 0/20 Correct 0 Score 0
  1. Task control table

  2. Transient control table

  3. Terminal Control Table

  4. Transaction control Table


Correct Option: C
  1. Processing Program Table

  2. Program Control Table

  3. Task control table

  4. File control table


Correct Option: A
  1. Non-Psuedo Conversational program

  2. Psuedo Conversational

  3. Reentrant program

  4. Quasi-reentrant program


Correct Option: A
  1. Execution Interface Block

  2. Error Interface block

  3. External Interval block

  4. Exit interface block


Correct Option: A

When a Task ends ,CICS releases all storage associated with the task ?

  1. True

  2. False


Correct Option: A

Which Transfers control to another program at the same level?

  1. LINK

  2. XCTL

  3. RETURN

  4. CALL


Correct Option: B

What are the two types of maps?

  1. Symbolic map

  2. Static map

  3. Physical map

  4. Dynamic Map


Correct Option: A,C
  1. Defines each Map Set

  2. Defines each Map

  3. Defines each Field

  4. Defines each Data


Correct Option: B

How many number of bytes will be utilized in the below group variable EMP-RECORD? 01 EMP-RECORD. 02 EMP-DATA1. 03 EMP-NAME PIC X(10). 03 EMP-SAL PIC 9(04). 02 EMP-DATA2 REDEFINES EMP-DATA1. 03 EMP-N1 PIC X(12). 03 EMP-N2 PIC 9(02). 02 EMP-DATA3. 03 EPT1 PIC X(02). 03 DEPT2 PIC X(02).

  1. 14

  2. 16

  3. 18

  4. 32


Correct Option: C

EVALUATE WS-INPUT WHEN 1 WHEN 2 DISPLAY ‘OPTION 2’ WHEN 3 DISPLAY ‘OPTION 3’ WHEN OTHER DISPLAY ‘OTHER’ END-EVALUATE What will be displayed when WS-INPUT is 1?

  1. Nothing will be displayed

  2. OPTION 2

  3. OPTION 3

  4. OTHER


Correct Option: B

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) Nothing will be displayed - This option is incorrect because according to the given EVALUATE statement, when WS-INPUT is 1, there is a WHEN 1 clause that does not have a DISPLAY statement associated with it.

Option B) OPTION 2 - This option is correct because when WS-INPUT is 2, the EVALUATE statement matches the condition in the WHEN 2 clause and displays "OPTION 2".

Option C) OPTION 3 - This option is incorrect because when WS-INPUT is 1, the condition in the WHEN 3 clause is not met.

Option D) OTHER - This option is incorrect because when WS-INPUT is 1, the condition in the WHEN OTHER clause is not met.

The correct answer is B) OPTION 2. This option is correct because when WS-INPUT is 2, the EVALUATE statement matches the condition in the WHEN 2 clause and displays "OPTION 2".

MAIN-PARA. MOVE 10 TO WS-CTR PERFORM PARA-1 WS-CTR TIMES END-PERFORM. PARA-1. MOVE 20 TO WS-CTR. How many times the PARA-1 will be performed when the above code is executed?

  1. 10

  2. 20

  3. 1

  4. None


Correct Option: A

Can we redefine an existing X(100) field with a new field of X(200)?

  1. Yes

  2. No

  3. None of the above

  4. All of the above


Correct Option: A

AI Explanation

To answer this question, we need to understand the concept of redefining fields in programming.

In programming, fields are variables or data structures that hold values. They are defined with a specific data type and size.

When it comes to redefining an existing field, it depends on the programming language and the specific situation. However, in general, it is possible to redefine an existing field with a new field of a different size.

In this case, the question asks if we can redefine an existing X(100) field with a new field of X(200). The correct answer is A) Yes. This means that it is possible to redefine an existing field with a larger size, in this case, going from X(100) to X(200).

It is important to note that when redefining fields, you should consider the impact on the program and any potential issues that may arise from changing the size of the field.

02 A PIC 9(5) VALUE 1234. 02 B PIC ZZ999. In Procedure Divison, MOVE A TO B DISPLAY B. What will be displayed with above display statement?

  1. 01234

  2. 00123

  3. 1234

  4. 123


Correct Option: C
  1. Contents of A will be moved to B

  2. Contents of B will be moved to A

  3. Statement will give an error

  4. None


Correct Option: B

In Working Storage section, 02 A PIC 9 VALUE 2. 02 B REDEFINES A PIC 9. 02 C REDEFINES A PIC 9. Following statement is present in Procedure Division. Compute A = B + C What will be the values in A, B and C after executing the above statement?

  1. A=4, B=2, C=4

  2. A=4, B=4, C=4

  3. A=2, B=2, C=2

  4. Statement will be errored out.


Correct Option: B

DISPLAY 'This is COBOL Test' The above statement is coded in a COBOL program. Where will the text be displayed, when this program is executed?

  1. The media/resource that is assigned to SYSPRINT DD name in JCL

  2. The media/resource that is assigned to SYSOUT DD name in JCL

  3. Always prints on Spool Screen

  4. Always prints on Printer


Correct Option: B
- Hide questions