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

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

The SQL statement EXECUTE IMMEDIATE causes an SQL statement to prepare and execute, dynamically, at run time.

  1. True

  2. False


Correct Option: B

When using DISPLAY statement, on the system punch device, the last eight characters are used for

  1. Line Number

  2. PROGRAM-ID name

  3. User ID

  4. Nothing


Correct Option: B

ENTRY is

  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

What is EXIT PROGRAM?

  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

Why do ypu use INVOKE in COBOL?

  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
  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

What must be the BLOCK CONTAINS when RECORDING MODE U?

  1. Zero

  2. Cant use it.

  3. 323327

  4. 332227


Correct Option: B

What is EXPLICIT SCOPE TERMINATOR?

  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

What’s the PICTURE clause for Alphabetic identifiers

  1. PIC X ()

  2. PIC 9 ()

  3. PIC A ()

  4. PIC ()


Correct Option: C

What are the acceptable types of the COBOL identifiers

  1. Alphanumeric

  2. Numeric

  3. Alphabetic

  4. all the above


Correct Option: D
- Hide questions