PL/SQL and JCL Programming Quiz
Quiz covering PL/SQL procedures, cursors, data types, and JCL job control language for mainframe systems
Questions
If DISP=(,CATLG) which is the correct one?
- DISP=NEW,CATLG,CATLG
- DISP=OLD,DELETE,CATLG
- DISP=NEW,CATLG,DELETE
- DISP=OLD,CATLG,CATLG
Which keyword allocates the largest available volume for the dataset?
- CONTIG
- MXIG
- ROUND
- RLSE
Which one of the following keyword a PROC cannot have?
- EXEC
- SYSABEND
- JOBLIB
- SYSPRINT
What is the maximum number of DD stmt a step can have?
- 100
- 15
- 300
- 255
Which is the correct statement which will check only for errors?
- TYPRUN=COMPILE
- TYPRUN=ERRFREE
- TYPRUN=HOLD
- TYPRUN=SCAN
What IBM utility is used to rename a dataset?
- IEBCOPY
- IEBGENER
- IEHPROGM
- IEBCOMPR
If DISP parameter is not coded in the DD statement that what is the default value?
- DISP=OLD,DELETE,KEEP
- DISP=OLD,KEEP,KEEP
- DISP=NEW,DELETE,DELETE
- DISP=SHR,KEEP,DELETE
Which one of the following is used to print the dump of the abended job in an unformatted way?
- SYSOUT
- SYSABEND
- SYSUDUMP
- SYSMDUMP
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.
- step1, step2 and step3 will execute
- only step1 and step3 will execute
- only step1 and step2 will execute
- only step1 will execute
Which one of the following is used to pass input to the COBOL program?
- INPUT
- PARM
- SYSOUT
- COND
How many types of triggers are there?
- 4
- 8
- 12
- 16
What does the cursor attribute ‘%rowcount’ do?
- Check whether cursor has fetched any row
- Check whether cursor has not fetched any row.
- Check the number of rows returned by the cursor
- Both A and C
What are the types of cursors available in plsql?
- user defined
- implied
- implicit and explicit
- Implied and user defined
The structure of simple explicit cursor is
- open cursor; ---some statements close;
- open cursor; fetch into variables; ---some statements close cursor;
- open cursor; fetch into variables; ---some statements close;
- All of the above
The data type returned by a ‘%FOUND’ cursor attribute is
- NUMBER
- BOOLEAN
- CHARACTER
- STRING
In which property does a NUMBER datatype differs from a PLS_INTEGER datatype
- Padding
- Length
- Storage
- All of the above
A database storage is stored in the database as
- In compiled form
- As source code
- Both A and B
- None of the above
The default mode of parameters that can be passes to a procedure?
- IN
- OUT
- OUTIN
- INOUT
What are the modes of parameters that can be passes to a procedure?
- IN
- IN, OUT
- IN, OUT,INOUT
- IN, OUT, INOUT , OUTIN
True of False :A package specification can exist without a body
- True
- False