0

mainframe Online Quiz - 50

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

Is compute w=u a valid statement ?

  1. True

  2. False


Correct Option: A

The advantages of structured programming are:

  1. to get rid of GO TO statements

  2. visibility and ease of understanding

  3. easy to debug the programs

  4. all the above


Correct Option: D

Which of the following are the minimum requirements to compile a program without errors ?

  1. Identification Division.

  2. Program-ID.

  3. Program-name.

  4. All the above


Correct Option: D

REDEFINES clause can be used along with an OCCURS clause.

  1. True

  2. False


Correct Option: A

How many dimensions are allowed for a table?

  1. 4

  2. 5

  3. 6

  4. 7


Correct Option: D

The order of the WHEN clauses in EVALUATE statement is not significant.

  1. True

  2. False


Correct Option: B

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

  1. 6

  2. 7

  3. 8

  4. 12


Correct Option: B

AI Explanation

To answer this question, we need to understand the OCCURS clause in programming languages like COBOL.

The OCCURS clause is used in COBOL to define an array or table data structure. It specifies the number of occurrences or elements in the array/table.

In COBOL, the OCCURS clause allows a maximum of 7 subscripts or indexes for an array or table. These subscripts or indexes are used to access individual elements within the array or table.

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

Option A) 6 - This option is incorrect because the OCCURS clause allows a maximum of 7 subscripts or indexes, not 6.

Option B) 7 - This option is correct because the OCCURS clause allows a maximum of 7 subscripts or indexes.

Option C) 8 - This option is incorrect because the OCCURS clause allows a maximum of 7 subscripts or indexes, not 8.

Option D) 12 - This option is incorrect because the OCCURS clause allows a maximum of 7 subscripts or indexes, not 12.

The correct answer is Option B) 7. This option is correct because the OCCURS clause allows a maximum of 7 subscripts or indexes.

REDEFINES clause can be used in the FILE SECTION.

  1. True

  2. False


Correct Option: B

How do you retain a newly created Dataset?

  1. 2Movsave

  2. Mov2save

  3. Copy

  4. Save

  5. XMIT

  6. Savenmov


Correct Option: B

Which is the table that stores Vehicle details

  1. SRVTSUM

  2. SRVVHCL

  3. SRVCOOP

  4. SRVCNCL


Correct Option: B

What is the meaning of GDG Generation reference for (+0)

  1. Previous generation

  2. Current Generation

  3. Next Generation

  4. All generations


Correct Option: B

What is the meaning of the SQL Code -811

  1. Multiple Rows

  2. Single Row

  3. No Rows

  4. Null Value


Correct Option: A

What is the table name which stores contract status

  1. SRVCTRC

  2. SRVCHNL

  3. SRVADJT

  4. SRVCOOP


Correct Option: A

Which is the table stores Option details

  1. SRVCHNL

  2. SRVCTRC

  3. SRVCOOP

  4. SRVRNST


Correct Option: C

What is the file status for end of file operation

  1. 0

  2. 15

  3. 20

  4. 10


Correct Option: D

How many divisions are available in COBOL

  1. 3

  2. 5

  3. 2

  4. 4


Correct Option: D

Which is the Division where you map the logic file name to JCL DD name

  1. Identification Division

  2. Procedure Division

  3. Data Division

  4. Environment Division


Correct Option: D

Which is the parameter used to restart a JOB

  1. RESTART

  2. COND

  3. SPACE

  4. PROC


Correct Option: A

What is the ISPF Option to copy the data from one file another file

  1. 3.2

  2. 3.3

  3. 3.4

  4. 3.12


Correct Option: B
- Hide questions