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

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

IF NOT AGE LESS THAN 30 AND 40 GOTO PARA-AGE-MIDDLES. The controls will go to the paragraph named PARA-AGE-MIDDLES

  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

AI Explanation

To answer this question, let's analyze the given statement:

IF NOT AGE LESS THAN 30 AND 40 GOTO PARA-AGE-MIDDLES

This statement can be understood as "If the age is not less than 30 and also not equal to 40, then go to the paragraph named PARA-AGE-MIDDLES."

Let's go through each option to determine the correct answer:

Option A) if AGE is greater than or equal to 30 This option suggests that the control will go to the paragraph if the age is greater than or equal to 30. However, this option does not consider the condition that the age should not be equal to 40, as stated in the given statement. Therefore, this option is incorrect.

Option B) if AGE is greater than or equal to 40 This option suggests that the control will go to the paragraph if the age is greater than or equal to 40. However, this option does not consider the condition that the age should not be less than 30, as stated in the given statement. Therefore, this option is incorrect.

Option C) if AGE is less than or equal to 30 This option suggests that the control will go to the paragraph if the age is less than or equal to 30. However, this option does not consider the condition that the age should not be equal to 40, as stated in the given statement. Therefore, this option is incorrect.

Option D) if AGE is greater than or equal to 30 but less than 40 This option suggests that the control will go to the paragraph if the age is greater than or equal to 30 but less than 40. This option correctly considers both conditions stated in the given statement: the age should not be less than 30 and not equal to 40. Therefore, this option is correct.

Therefore, the correct answer is Option D) if AGE is greater than or equal to 30 but less than 40.

What does DPS stand for?

  1. Display Programming System

  2. Data Presentation System

  3. Display Processing System

  4. Data Processing System


Correct Option: C

Identify the components of DPS 2200?

  1. Form Language Definition Processor

  2. Form Design

  3. D$DEF Routines

  4. Interaction to application programs


Correct Option: A

What is the purpose of DPS 2200?

  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

On which environment does DPS 2200 run-time routines operate?

  1. Application Environment

  2. Demand Session

  3. Program Session

  4. Command Session


Correct Option: B

What is the function of a DD statement ?

  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

Can JUSTIFIED be used for all data types?

  1. True

  2. False


Correct Option: B

Form processing in DPS, the form is stored in a storage area. This storage area is called:

  1. Form Library

  2. Work Space

  3. Info Buffer

  4. Scratch Area


Correct Option: A

In which mode must you open a file to update the records in the file?

  1. Input

  2. Output

  3. Extended

  4. I-O


Correct Option: D

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

Identify which of the following is not a library commands?

  1. MOD

  2. NEW

  3. REP

  4. OLD


Correct Option: A

Linkage section is present in which division?

  1. Identification

  2. Procedure

  3. Data

  4. Environment


Correct Option: C
- Hide questions