JCL, Java Servlets, and PowerBuilder Programming Quiz

Mixed quiz covering IBM JCL/Mainframe concepts, Java Servlet programming, and PowerBuilder datawindow events

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What will happen if itemerror event returns 3?

  1. Reject the data value with no message box
  2. Accept the data value
  3. Reject the data value but allow focus to change
  4. Reject the data value and show an error message box
Question 2 Multiple Choice (Single Answer)

Which is not a status of a datawindow row?

  1. New!
  2. NewModified!
  3. DataModified!
  4. NonModified!
Question 3 Multiple Choice (Single Answer)

Which is event Accepttext will trigger automatically?

  1. Itemerror
  2. ItemModify
  3. Rowfocuschange
  4. None
Question 4 Multiple Choice (Multiple Answers)

Which of the HTTP methods below is not considered to be "idempotent"?

  1. GET
  2. TRACE
  3. POST
  4. HEAD
  5. OPTIONS
  6. SERVICE
Question 5 Multiple Choice (Single Answer)

What is the likely effect of calling a servlet with the POST HTTP method if that servlet does not have a doPost() method?

  1. If the servlet has a doGet() method, it executes that instead.
  2. 404 response code: SC_NOT_FOUND.
  3. 405 response code: SC_METHOD_NOT_ALLOWED.
  4. 500 response code: SC_INTERNAL_SERVER_ERROR.
  5. 501 response code: SC_NOT_IMPLEMENTED.
Question 6 Multiple Choice (Single Answer)

What is the maximum number of parameter values that can be forwarded to the servlet from the following HTML form? (Choose one.)

Chapter 1 Question 9

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

What request header must be set for parameter data to be decoded from a form?

  1. EncType: application/x-www-urlencoded
  2. Content-Type: application/x-www-form-urlencoded
  3. Content-Type: multipart/form-data
  4. Encoding-Type: multipart/form-data
  5. Accept-Encoding: application/www-form-encoded
  6. Encoding-Type: multipart/www-form-data Request
Question 8 Multiple Choice (Multiple Answers)

Under which of the following circumstances are servlets most likely to be instantiated?

  1. During web application startup
  2. If there are insufficient instances of the servlet to service incoming requests
  3. On a client first requesting the servlet
  4. At the same time as a different servlet is instantiated, when that different servlet makes use of the servlet in question
  5. After the time specified on an UnavailableException has expired
  6. At some arbitrary point in the web application or application server lifetime
Question 9 Multiple Choice (Single Answer)

What is the default value for MSGLEVEL keyword?

  1. MSGLEVEL=(1,0)
  2. MSGLEVEL=(0,1)
  3. MSGLEVEL=(1,1)
  4. MSGLEVEL=(2,1)
Question 10 Multiple Choice (Single Answer)

What is keyword to make the job run for an unlimited time.

  1. TIME=(14,39)
  2. TIME=NOLIMIT
  3. TIME=UNLIMIT
  4. TIME=MAXIMUM
Question 11 Multiple Choice (Single Answer)

What is default delimiter for instream data?

  1. /*
  2. //*
  3. */
  4. &&
Question 12 Multiple Choice (Single Answer)

Which one is the valid statement? 1 SYSIN DD DSN=DUMMY 2 SYSIN DD * 3 SYSIN DD DUMMY 4 SYSIN DD DSN=NULLFILE

  1. ALL THE ABOVE
  2. ONLY 1 AND 2
  3. ONLY 2 AND 4
  4. ONLY 2, 3 AND 4
Question 13 Multiple Choice (Single Answer)

Which one denotes the end of the JOB?

  1. //
  2. //*
  3. /*
  4. END
Question 14 Multiple Choice (Single Answer)

What the JES will do?

  1. Checks for errors.
  2. Schedules the job
  3. Manages the output processing of the job.
  4. All the above
Question 15 Multiple Choice (Single Answer)

What is the Normal DISP position for temporary files?

  1. OLD
  2. PASS
  3. MOD
  4. SHR
Question 16 Multiple Choice (Single Answer)

Continuation of the previous line should begin in the column

  1. 3
  2. Anywhere between 5 to 17
  3. Anywhere between 4 to 16
  4. Anywhere between 1 to 17
Question 17 Multiple Choice (Single Answer)

What is program used to compile the COBOL program?

  1. IGYWCL
  2. IEWL
  3. IEBCOMPILE
  4. IGYCRCTL
Question 18 Multiple Choice (Single Answer)

If the condition in the COND parameter satisfies what will happen?

  1. Step will not execute
  2. Step will abend
  3. Step will execute
  4. S0C7
Question 19 Multiple Choice (Single Answer)

What should be the DD name if we use the IBM utility IEBGENER?

  1. SYSUT1
  2. SYSIN
  3. DD1
  4. SYSPRINT
Question 20 Multiple Choice (Single Answer)

Which library will have the load modules of the IBM utilities?

  1. SYS1.LINKLIB
  2. SYS1.SOTREPROC
  3. SYS1.CATPROC
  4. SYS1.PROCLIB