0

mainframe Online Quiz - 131

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

COBOL host structures can have maximum of three levels in a COBOL/DB2 program

  1. True

  2. False


Correct Option: B

Which assembler routine used to obtain a formatted form of the SQLCA and a text message based on the SQLCODE field of SQLCA

  1. SQLCA

  2. DCLGEN

  3. DSNTIAR

  4. SQLSTATE


Correct Option: C

To allow DB2 to close a cursor after a commit or a rollback operation, we use the WITH HOLD option of the DECLARE CURSOR statement.

  1. True

  2. False


Correct Option: B
  1. Can contain only one table but rows from different tables are mixed

  2. Can contain only one table but rows from different tables are not mixed

  3. Can contain more than one table but rows from different tables are mixed

  4. None of these


Correct Option: D
  1. Entry will enter the main program and execute it.

  2. Specifies the program entry.

  3. It establishes an alternate entry point into a COBOL called subprogram.

  4. ENTRY is not a COBOL keyword


Correct Option: C
  1. Invalid Syntax

  2. Specifies the end of a called program and returns control to the calling program.

  3. Specifies the end of a called program.

  4. Specifies the end of a calling program.


Correct Option: B
  1. To creates object instances of a COBOL or Java class or invokes a method defined in a COBOL or Java class

  2. To creates object instances of a COBOL or ORACLE class or invokes a method defined in a COBOL or ORACLE class

  3. To creates object instances of a COBOL or UNIX class or invokes a method defined in a COBOL or UNIX class

  4. Invalid Syntax


Correct Option: A

Maximum length of program name (compact mode) that can be specified in PROGRAM-ID is

  1. 8

  2. 10

  3. 20

  4. 30


Correct Option: A

RECURSIVE in PROGRAM-ID will

  1. Loop the program

  2. What is RECURSIVE?

  3. Recursively reenters

  4. Recursively reenters only for CICS program


Correct Option: C

What are the valid level numbers other than 66, 77 & 88?

  1. 1 to 99

  2. 1 to 50

  3. 1 to 49

  4. 1 to infinite


Correct Option: C
  1. No Blocks

  2. Block size is unlimited

  3. The block size is determined at run time from the DD parameters

  4. The block size is determined at compile time from the DD parameters


Correct Option: C
  1. It marks the end of certain Procedure Division statements.

  2. It marks the end of certain looping condition statements.

  3. It marks the end of program.

  4. There is nothing like EXPLICIT SCOPE TERMINATOR in COBOL


Correct Option: A

How many divisions we should have in COBOL programs

  1. 2

  2. 3

  3. 4

  4. none of the above


Correct Option: C
  1. Alphanumeric

  2. Numeric

  3. Alphabetic

  4. all the above


Correct Option: D
- Hide questions