0

mainframe Online Quiz - 6

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

10.Which statement is used to end the COBOL program?

  1. STOP

  2. END

  3. STOP RUN

  4. END RUN


Correct Option: C

AI Explanation

To answer this question, you need to understand how to end a COBOL program.

The correct statement used to end a COBOL program is option C) STOP RUN.

Option A) STOP - This option is incorrect because the STOP statement is used to terminate the execution of a specific program section or paragraph, but it does not end the entire program.

Option B) END - This option is incorrect because the END statement is used to mark the end of a specific program section or paragraph, but it does not end the entire program.

Option D) END RUN - This option is incorrect because there is no such statement in COBOL. The correct statement is STOP RUN.

The correct answer is option C) STOP RUN. This statement is used to end the COBOL program and terminate its execution.

  1. Which clause can be used instead of checking for FILE STATUS = 10?
  1. RECORD NOT FOUND

  2. AT END

  3. DUPLICATE RECORD

  4. END OF FILE


Correct Option: B
  1. SEQUENTIAL

  2. DYNAMIC

  3. INDEX

  4. ALL OF THE ABOVE


Correct Option: D
  1. What level is used for RENAMES clause?
  1. 66

  2. 77

  3. 88

  4. 90


Correct Option: A

8.In which section do sort description is given?

  1. WORKING-STORAGE

  2. FILE SECTION

  3. CONTROL SECTION

  4. LINKAGE SECTION


Correct Option: B
Explanation:

In COBOL programming, the short description of a file is typically given in the FILE SECTION.

Option A) WORKING-STORAGE - This section is used to define variables and data items that are used within the program for temporary storage or calculations. Option B) FILE SECTION - This section is used to define the files that the program will read from or write to. It includes the short description of the file, along with details such as the file organization, access mode, and record structure. Option C) CONTROL SECTION - This section is used to define the logic and control structures of the program, such as the PROCEDURE DIVISION and the various paragraphs, sections, and statements within it. Option D) LINKAGE SECTION - This section is used to define data items that are passed between programs in a COBOL program.

The correct answer is B) FILE SECTION. This is where the short description of a file is typically given in COBOL programming.

"THE DATE, TIME, OR TIMESTAMP VALUE value IS INVALID" , What is SQLCODE for this statement

  1. -180

  2. -504

  3. -805

  4. -545


Correct Option: D

Select the best suitable answer for below question, DDIO files is a

  1. Listing file

  2. IAM file

  3. XLAT file

  4. QSAM file


Correct Option: A

State TRUE or FALSE A new copy of the load module is not required when program is not modified

  1. True

  2. False


Correct Option: A

Break point can be set in the program by

  1. Inserting any label in the required line number section

  2. Inserting a letter ‘.B’ in the required line number section

  3. Inserting a letter ‘ S’ in the required line number section

  4. Inserting a letter ‘ B’ in the required line number section


Correct Option: D

State TRUE or FALSE, A default break point is set on the PROCEDURE DIVISION section when a program is invoked bt XPEDITOR

  1. True

  2. False


Correct Option: B

State the command to release a program from XPEDITOR

  1. CEMT REL PROG()

  2. CECI REL PROG()

  3. CECI RELEASE PROG

  4. REL PROG()


Correct Option: B

'WHEN’ command is used to analyze the outcome of a program in XPEDITOR for a particular condition, syntax is given below WHEN , Here VARIABLE can be

  1. System time parameter and ‘X’ is the time

  2. A storage variable which is used in the program for which the program behavior changes differently for different values and ‘X’ is one of the possible value

  3. A storage variable which is used in the program for which the program behavior changes differently for different values and ‘X’ is one of the non-possible value

  4. None of the above


Correct Option: B

What is the command line option to start batch XPEDITOR

  1. EX

  2. XP

  3. SXP

  4. X


Correct Option: B

What is the primary requisite to debug a program using XPEDITOR , Choose appropriate answer

  1. The program should not have any COPY book

  2. The program should be compiled with XPEDITOR option

  3. The program load module should present in the allocated DDIO listing file

  4. The program load should not have any subroutine modules


Correct Option: C

What is the command to monitor variable values in XPEDITOR

  1. KEEP

  2. SHOW

  3. VIEW

  4. DISPLAY


Correct Option: A

Which of the following is a wrong SEND command?

  1. EXEC CICS SEND MAP(.........) MAPSET(....) CURSOR(100) ERASE END-EXEC.

  2. EXEC CICS SEND MAP(.........) MAPSET(....) CURSOR ERASE END-EXEC.

  3. EXEC CICS SEND MAP(.........) MAPSET(....) CURSOR(EIBCPOSN) ERASE END-EXEC.

  4. EXEC CICS SEND MAP(.........) MAPS(…….) CURSOR(EIBCPOSN) ERASE END-EXEC.


Correct Option: D

Which is the correct way of defining a BMS

  1. DFHMDF Field Definition in a Map - Field 1 DFHMDI Map Definition - Map 1 DFHMSD Mapset Definition - Start

  2. DFHMDF Mapset Definition - Start DFHMDI Map Definition - Map 1 DFHMSD Field Definition in a Map - Field 1

  3. DFHMSD Mapset Definition - Start DFHMDI Map Definition - Map 1 DFHMDF Field Definition in a Map - Field 1

  4. DFHMDI Map Definition - Map 1 DFHMSD Mapset Definition - Start DFHMDF Field Definition in a Map - Field 1


Correct Option: C

BMS is Interface between the ___________ logic and ____________ logic implemented using a LINK command and commarea

  1. Business, Database

  2. Business, Presentation

  3. Presentation, Database

  4. Database, User


Correct Option: B
- Hide questions