JCL and Java Programming Quiz
A mixed quiz covering JCL (Job Control Language) statements and parameters, plus Java programming fundamentals including wrapper classes, threads, and exceptions.
Questions
What is the signature of the constructor of a thread class?
- Thread(Runnable threadob,String threadName)
- Thread(String threadob, Runnable threadName)
- Thread(Runnable threadob,ArrayList threadName)
- Thread(ArrayList threadob,String threadName
Which of the following are true about the Error and Exception classes?
- Both classes extend Throwable.
- The Error class is final and the Exception class is not.
- The Exception class is final and the Error is not.
- Both classes implement Throwable.
The run() method should necessary exists in class created as subclass of thread?
- True
- False
Which of the option correctly describes the comments in java 1) // -- single line comment 2) /* -- / multiple line comment 3) /* -- */ documentation
- 1,2
- 2,3
- 3,1
- 1,2,3
Which of the following classes is used to perform basic console I/O?
- System
- SecurityManager
- Math
- Runtime
Which of the following is not a wrapper class?
- String
- Integer
- Boolean
- Character
Which statement is used to mark the beginning of a job and assign a name to the job?
- JOB
- EXEC
- STEP
- PROC
- None of the above
Which statement is used to mark the beginning of a job step, to assign a name to the step and to identify the program or procedure to be executed in the step?
- JOB
- EXEC
- STEP
- PROC
- None of the above
Which statement marks the end of an in-stream or cataloged procedure?
- JOB
- EXEC
- PROC
- PEND
- None of the above
Which statement marks the beginning of an in-stream procedure and assigns default values to parameters defined in the procedure?
- JOB
- EXEC
- PROC
- PEND
- None of the above
Which statement marks the beginning of one or more program control statements?
- JOB
- EXEC
- PROC
- PEND
- CNTL
If the Status field of the DISP Parameter is left out, it is defaulted to which of the following?
- NEW
- SHR
- OLD
- KEEP
- None of the above
If the status field of the DISP parameter is specified as OLD, what are the default values that will be assigned to the dataset at the normal and abnormal termination of the job?
- CATLG, DELETE
- DELETE,DELETE
- CATLG, CATLG
- DELETE, CATLG
- KEEP, KEEP
If the status field of the DISP parameter is specified as SHR, what are the default values that will be assigned to the dataset at the normal and abnormal termination of the job?
- CATLG, DELETE
- DELETE, DELETE
- CATLG, CATLG
- DELETE, CATLG
- KEEP, KEEP
If the status field of the DISP parameter is specified as NEW, what are the default values that will be assigned to the dataset at the normal and abnormal termination of the job?
- CATLG, DELETE
- DELETE, DELETE
- CATLG, CATLG
- DELETE, CATLG
- KEEP, KEEP
- If the DISP is specified as (NEW, CATLG, KEEP), what happens on abnormal termination of the job? (a) (b) (c) (d)
- The system retains and catalogs the dataset
- the system catalogs the dataset
- the system retains the dataset
- none of the above
XML allows the author to define his own tags and his own document structure
- True
- False
Which of the following Utilities is used to create GDG Index?
- IEBGENER
- IDCAMS
- IEFBR14
- INDEX
- None of the above
With the condition parameter defined as COND – ((4, GE), (9, LT)) which of the return codes will execute the subsequent step
- 4
- 9
- 10
- 11
- none of the above
What is the conventional DD name assigned to input data streams?
- SYSPRINT
- SYSIN
- SYSUT1
- SYSOUT