0

mainframe Online Quiz - 105

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

The following is Data Division entry 01 EMP-RECORD. 02 EMP-NAME. 04 FIRST-PART. 05 FIRST-NAME PIC X (10). 05 MIDDLE-NAME PIC X (10). 04 SURNAME PIC X(20). Which one of the following gives correct information about the above record description.

  1. It is correct.

  2. It is not correct because first-name and middle name contain the same PIC Clauses

  3. Not correct because the PIC Clause is missing for the first three data items.

  4. Not correct because the level number 03 is missing


Correct Option: A

Determine the size of the data item S9(4). 99

  1. 6

  2. 7

  3. 8

  4. 4


Correct Option: C
  1. 01 to 77

  2. 01 to 49 and 77

  3. all odd numbers from 01 to 49

  4. 01 to 49


Correct Option: D
  1. Comp is binary usage, while comp-3 indicates packed decimal.

  2. Comp is a packed decimal, while comp-3 indicates binary usage.

  3. Comp and Comp-3 are packed decimal.

  4. Comp and Comp-3 are binary usage.


Correct Option: A
  1. File is opened for input and an attempt is made To write to it (or Logic error).

  2. Mismatch in LRECL or BLOCKSIZE or RECFM between your COBOL pgn and the JCL ( or the dataset label).

  3. Attempted to open a file that is already open.

  4. File not found.


Correct Option: A
  1. In the least significant bit. Bit is ON if -ve, OFF if +ve.

  2. In the most significant bit. Bit is ON if -ve, OFF if +ve.

  3. In the least significant bit. Bit is ON if +ve, OFF if -ve.

  4. In the most significant bit. Bit is ON if +ve, OFF if -ve.


Correct Option: B
  1. An un-initialized numeric item.

  2. Data exception(data items have invalid data).

  3. None of the above

  4. Both 1 and 2 are correct


Correct Option: D
  1. Scope terminator is used to mark the end of a verb

  2. Scope terminator is used to mark the end of a statement

  3. Both 1 and 2

  4. None of the above


Correct Option: C

How many subscripts or indexes are allowed for an OCCURS clause?

  1. 4

  2. 5

  3. 6

  4. 7


Correct Option: D

What are the minimum requirements to compile a program without errors?

  1. Identification Division. Program-ID. Program-name.

  2. Identification Division. Program-ID. Program-name. Environment Division.

  3. Identification Division. Program-ID. Program-name. Environment Division. Data Division.

  4. Identification Division. Program-ID. Program-name. Environment Division. Data Division. Procedure Division.


Correct Option: A

Primary space allocated first and then if required Secondary space will be allocated. b. Secondary space allocated first and then if required Primary space will be allocated. c. Primary and Secondary space allocated at the time of Job starts execution. d. Primary and Secondary space allocated at the time of Step starts execution. Which statement(s) is TRUE?

  1. a & c

  2. b & d

  3. a, c, d

  4. a only


Correct Option: A
  1. (NEW,DELETE,DELETE)

  2. (NEW,CATLG,DELETE)

  3. (NEW,CATLG,UNCATLG)

  4. (MOD,CATLG,DELETE)


Correct Option: A
  1. IF THEN/ELSE

  2. COND

  3. BOTH

  4. Steps cannot be skipped in JCL.


Correct Option: C

Possible causes for S0C4 a. Reading a file that is not open. b. Invalid address referred due to subscript error c. Tried moving variable length record that was larger than target field size.

  1. a, b, & c

  2. a only

  3. a & b only

  4. b only


Correct Option: A
- Hide questions