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.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What is the signature of the constructor of a thread class?

  1. Thread(Runnable threadob,String threadName)
  2. Thread(String threadob, Runnable threadName)
  3. Thread(Runnable threadob,ArrayList threadName)
  4. Thread(ArrayList threadob,String threadName
Question 2 Multiple Choice (Single Answer)

Which of the following are true about the Error and Exception classes?

  1. Both classes extend Throwable.
  2. The Error class is final and the Exception class is not.
  3. The Exception class is final and the Error is not.
  4. Both classes implement Throwable.
Question 3 True/False

The run() method should necessary exists in class created as subclass of thread?

  1. True
  2. False
Question 4 Multiple Choice (Single Answer)

Which of the option correctly describes the comments in java 1) // -- single line comment 2) /* -- / multiple line comment 3) /* -- */ documentation

  1. 1,2
  2. 2,3
  3. 3,1
  4. 1,2,3
Question 5 Multiple Choice (Single Answer)

Which of the following classes is used to perform basic console I/O?

  1. System
  2. SecurityManager
  3. Math
  4. Runtime
Question 6 Multiple Choice (Single Answer)

Which of the following is not a wrapper class?

  1. String
  2. Integer
  3. Boolean
  4. Character
Question 7 Multiple Choice (Single Answer)

Which statement is used to mark the beginning of a job and assign a name to the job?

  1. JOB
  2. EXEC
  3. STEP
  4. PROC
  5. None of the above
Question 8 Multiple Choice (Single Answer)

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?

  1. JOB
  2. EXEC
  3. STEP
  4. PROC
  5. None of the above
Question 9 Multiple Choice (Single Answer)

Which statement marks the end of an in-stream or cataloged procedure?

  1. JOB
  2. EXEC
  3. PROC
  4. PEND
  5. None of the above
Question 10 Multiple Choice (Single Answer)

Which statement marks the beginning of an in-stream procedure and assigns default values to parameters defined in the procedure?

  1. JOB
  2. EXEC
  3. PROC
  4. PEND
  5. None of the above
Question 11 Multiple Choice (Single Answer)

Which statement marks the beginning of one or more program control statements?

  1. JOB
  2. EXEC
  3. PROC
  4. PEND
  5. CNTL
Question 12 Multiple Choice (Single Answer)

If the Status field of the DISP Parameter is left out, it is defaulted to which of the following?

  1. NEW
  2. SHR
  3. OLD
  4. KEEP
  5. None of the above
Question 13 Multiple Choice (Single Answer)

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?

  1. CATLG, DELETE
  2. DELETE,DELETE
  3. CATLG, CATLG
  4. DELETE, CATLG
  5. KEEP, KEEP
Question 14 Multiple Choice (Single Answer)

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?

  1. CATLG, DELETE
  2. DELETE, DELETE
  3. CATLG, CATLG
  4. DELETE, CATLG
  5. KEEP, KEEP
Question 15 Multiple Choice (Single Answer)

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?

  1. CATLG, DELETE
  2. DELETE, DELETE
  3. CATLG, CATLG
  4. DELETE, CATLG
  5. KEEP, KEEP
Question 16 Multiple Choice (Single Answer)
  1. If the DISP is specified as (NEW, CATLG, KEEP), what happens on abnormal termination of the job? (a) (b) (c) (d)
  1. The system retains and catalogs the dataset
  2. the system catalogs the dataset
  3. the system retains the dataset
  4. none of the above
Question 17 True/False

XML allows the author to define his own tags and his own document structure

  1. True
  2. False
Question 18 Multiple Choice (Single Answer)

Which of the following Utilities is used to create GDG Index?

  1. IEBGENER
  2. IDCAMS
  3. IEFBR14
  4. INDEX
  5. None of the above
Question 19 Multiple Choice (Single Answer)

With the condition parameter defined as COND – ((4, GE), (9, LT)) which of the return codes will execute the subsequent step

  1. 4
  2. 9
  3. 10
  4. 11
  5. none of the above
Question 20 Multiple Choice (Single Answer)

What is the conventional DD name assigned to input data streams?

  1. SYSPRINT
  2. SYSIN
  3. SYSUT1
  4. SYSOUT