0

mainframe Online Quiz - 4

Description: mainframe Online Quiz - 4
Number of Questions: 20
Created by:
Tags: mainframe
Attempted 0/20 Correct 0 Score 0
  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

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

Read the functionality below and identify the function in DPS: "This command clears your workspace, but does not affect the form library."

  1. DEL

  2. ERA

  3. SAV

  4. REP


Correct Option: A

What is the PIC representation for +123.876?

  1. PIC S9(3).999

  2. PIC 9(3).999

  3. PIC S9(3)V999

  4. PIC 9(3)V999


Correct Option: C

AI Explanation

To represent the number +123.876 in PIC (Picture) format, we need to consider the sign, the integer part, and the fractional part.

The options given are: A. PIC S9(3).999 B. PIC 9(3).999 C. PIC S9(3)V999 D. PIC 9(3)V999

Let's analyze each option:

Option A) PIC S9(3).999 - This option represents a signed numeric field with a length of 3 digits for the integer part and 3 decimal places for the fractional part. However, it does not account for the sign of the number.

Option B) PIC 9(3).999 - This option represents an unsigned numeric field with a length of 3 digits for the integer part and 3 decimal places for the fractional part. However, it does not account for the sign of the number.

Option C) PIC S9(3)V999 - This option represents a signed numeric field with a length of 3 digits for the integer part, a decimal point, and 3 decimal places for the fractional part. The "V" represents the decimal point. This option correctly represents the number +123.876.

Option D) PIC 9(3)V999 - This option represents an unsigned numeric field with a length of 3 digits for the integer part, a decimal point, and 3 decimal places for the fractional part. However, it does not account for the sign of the number.

The correct answer is C) PIC S9(3)V999. This option correctly represents the number +123.876 by considering the sign, integer part, and fractional part.

“SELECT FILE-1 ASSIGN TO INFILE”, in this statement what is the logical and physical file name?

  1. Logical- FILE-1, Physical- INFILE

  2. Logical- INFILE, Physical- FILE-1

  3. Logical- None, Physical-ASSIGN

  4. None of them


Correct Option: A

AI Explanation

To answer this question, let's break down the given statement: "SELECT FILE-1 ASSIGN TO INFILE".

In COBOL programming, the "SELECT" statement is used to define and assign logical and physical file names. The syntax of the "SELECT" statement is as follows:

SELECT logical-file-name ASSIGN TO physical-file-name

In the given statement, the logical file name is "FILE-1" and the physical file name is "INFILE".

Therefore, the correct answer is:

A) Logical - FILE-1, Physical - INFILE

  1. Identification

  2. Procedure

  3. Data

  4. Environment


Correct Option: C

the functionality below and identify the function in DPS: “Saves a changed form in an area of storage where a copy currently exists”.

  1. SAV

  2. MOD

  3. REP

  4. OLD


Correct Option: C
- Hide questions