PL/SQL and JCL Programming Quiz

Quiz covering PL/SQL procedures, cursors, data types, and JCL job control language for mainframe systems

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

If DISP=(,CATLG) which is the correct one?

  1. DISP=NEW,CATLG,CATLG
  2. DISP=OLD,DELETE,CATLG
  3. DISP=NEW,CATLG,DELETE
  4. DISP=OLD,CATLG,CATLG
Question 2 Multiple Choice (Single Answer)

Which keyword allocates the largest available volume for the dataset?

  1. CONTIG
  2. MXIG
  3. ROUND
  4. RLSE
Question 3 Multiple Choice (Single Answer)

Which one of the following keyword a PROC cannot have?

  1. EXEC
  2. SYSABEND
  3. JOBLIB
  4. SYSPRINT
Question 4 Multiple Choice (Single Answer)

What is the maximum number of DD stmt a step can have?

  1. 100
  2. 15
  3. 300
  4. 255
Question 5 Multiple Choice (Single Answer)

Which is the correct statement which will check only for errors?

  1. TYPRUN=COMPILE
  2. TYPRUN=ERRFREE
  3. TYPRUN=HOLD
  4. TYPRUN=SCAN
Question 6 Multiple Choice (Single Answer)

What IBM utility is used to rename a dataset?

  1. IEBCOPY
  2. IEBGENER
  3. IEHPROGM
  4. IEBCOMPR
Question 7 Multiple Choice (Single Answer)

If DISP parameter is not coded in the DD statement that what is the default value?

  1. DISP=OLD,DELETE,KEEP
  2. DISP=OLD,KEEP,KEEP
  3. DISP=NEW,DELETE,DELETE
  4. DISP=SHR,KEEP,DELETE
Question 8 Multiple Choice (Single Answer)

Which one of the following is used to print the dump of the abended job in an unformatted way?

  1. SYSOUT
  2. SYSABEND
  3. SYSUDUMP
  4. SYSMDUMP
Question 9 Multiple Choice (Single Answer)

STEP1 EXEC PGM=P1 STEP2 EXEC PGM=P2,COND=EVEN STEP3 EXEC PGM=P3,COND=((8,LE,STEP1),ONLY) If the condition code of the step1 is 4 and the step2 was abended then which statement is correct.

  1. step1, step2 and step3 will execute
  2. only step1 and step3 will execute
  3. only step1 and step2 will execute
  4. only step1 will execute
Question 10 Multiple Choice (Single Answer)

Which one of the following is used to pass input to the COBOL program?

  1. INPUT
  2. PARM
  3. SYSOUT
  4. COND
Question 11 Multiple Choice (Single Answer)

How many types of triggers are there?

  1. 4
  2. 8
  3. 12
  4. 16
Question 12 Multiple Choice (Single Answer)

What does the cursor attribute ‘%rowcount’ do?

  1. Check whether cursor has fetched any row
  2. Check whether cursor has not fetched any row.
  3. Check the number of rows returned by the cursor
  4. Both A and C
Question 13 Multiple Choice (Single Answer)

What are the types of cursors available in plsql?

  1. user defined
  2. implied
  3. implicit and explicit
  4. Implied and user defined
Question 14 Multiple Choice (Single Answer)

The structure of simple explicit cursor is

  1. open cursor; ---some statements close;
  2. open cursor; fetch into variables; ---some statements close cursor;
  3. open cursor; fetch into variables; ---some statements close;
  4. All of the above
Question 15 Multiple Choice (Single Answer)

The data type returned by a ‘%FOUND’ cursor attribute is

  1. NUMBER
  2. BOOLEAN
  3. CHARACTER
  4. STRING
Question 16 Multiple Choice (Single Answer)

In which property does a NUMBER datatype differs from a PLS_INTEGER datatype

  1. Padding
  2. Length
  3. Storage
  4. All of the above
Question 17 Multiple Choice (Single Answer)

A database storage is stored in the database as

  1. In compiled form
  2. As source code
  3. Both A and B
  4. None of the above
Question 18 Multiple Choice (Single Answer)

The default mode of parameters that can be passes to a procedure?

  1. IN
  2. OUT
  3. OUTIN
  4. INOUT
Question 19 Multiple Choice (Single Answer)

What are the modes of parameters that can be passes to a procedure?

  1. IN
  2. IN, OUT
  3. IN, OUT,INOUT
  4. IN, OUT, INOUT , OUTIN
Question 20 True/False

True of False :A package specification can exist without a body

  1. True
  2. False