Tag: mainframe

Questions Related to mainframe

Which of the following is not a valid Perform statement?

  1. Perform Para-1

  2. Perform Para-1 Thru Para-2

  3. Perform Section-2 Section

  4. Perform Para-1 20 times


Correct Option: C

AI Explanation

To answer this question, we need to understand the syntax and usage of the Perform statement in a programming language.

The Perform statement is used to execute a section of code multiple times or until a specific condition is met. It can be used in different ways:

A. Perform Para-1: This syntax executes the paragraph or section named "Para-1" once.

B. Perform Para-1 Thru Para-2: This syntax executes the paragraphs or sections from "Para-1" to "Para-2" in sequence.

C. Perform Section-2 Section: This syntax is not valid. It is missing the "Thru" keyword, which is required when specifying a range of paragraphs or sections.

D. Perform Para-1 20 times: This syntax executes the paragraph or section named "Para-1" 20 times in sequential order.

Therefore, the correct answer is C. The statement "Perform Section-2 Section" is not a valid Perform statement because it is missing the "Thru" keyword.

How can you reference an element of a 3 dimensional table?

  1. Indexes

  2. Subscripts

  3. Search

  4. Search-all


Correct Option: B
  1. if AGE is greater than or equal to 30

  2. if AGE is greater than or equal to 40

  3. if AGE is less than or equal to 30

  4. if AGE is greater than or equal to 30 but less than 40


Correct Option: D

What does DPS stand for?

  1. Display Programming System

  2. Data Presentation System

  3. Display Processing System

  4. Data Processing System


Correct Option: C
  1. Form Language Definition Processor

  2. Form Design

  3. D$DEF Routines

  4. Interaction to application programs


Correct Option: A
  1. It helps to run a batch program.

  2. It is used to write the application programs.

  3. It helps to access the database.

  4. It helps to create the forms and its run-time system communicates with application program.


Correct Option: D
  1. Application Environment

  2. Demand Session

  3. Program Session

  4. Command Session


Correct Option: B
  1. Identifies & describes a dataset

  2. Delimits a DO loop

  3. Marks the start of a declarative section

  4. Delimits the start of an inline include section


Correct Option: A

What does FLMU stands for?

  1. Form Language Manipulation Utility

  2. Form Language Method utility

  3. Front-end Language Manipulation Utility

  4. Front-end Language Method Utility.


Correct Option: A

What statement assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step ?

  1. DD

  2. EXEC

  3. JOB

  4. PROC


Correct Option: B