JCL, Java Servlets, and PowerBuilder Programming Quiz
Mixed quiz covering IBM JCL/Mainframe concepts, Java Servlet programming, and PowerBuilder datawindow events
Questions
What will happen if itemerror event returns 3?
- Reject the data value with no message box
- Accept the data value
- Reject the data value but allow focus to change
- Reject the data value and show an error message box
Which is not a status of a datawindow row?
- New!
- NewModified!
- DataModified!
- NonModified!
Which is event Accepttext will trigger automatically?
- Itemerror
- ItemModify
- Rowfocuschange
- None
Which of the HTTP methods below is not considered to be "idempotent"?
- GET
- TRACE
- POST
- HEAD
- OPTIONS
- SERVICE
What is the likely effect of calling a servlet with the POST HTTP method if that servlet does not have a doPost() method?
- If the servlet has a doGet() method, it executes that instead.
- 404 response code: SC_NOT_FOUND.
- 405 response code: SC_METHOD_NOT_ALLOWED.
- 500 response code: SC_INTERNAL_SERVER_ERROR.
- 501 response code: SC_NOT_IMPLEMENTED.
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
- 2
- 3
- 4
- 5
- 6
- 7
What request header must be set for parameter data to be decoded from a form?
- EncType: application/x-www-urlencoded
- Content-Type: application/x-www-form-urlencoded
- Content-Type: multipart/form-data
- Encoding-Type: multipart/form-data
- Accept-Encoding: application/www-form-encoded
- Encoding-Type: multipart/www-form-data Request
Under which of the following circumstances are servlets most likely to be instantiated?
- During web application startup
- If there are insufficient instances of the servlet to service incoming requests
- On a client first requesting the servlet
- At the same time as a different servlet is instantiated, when that different servlet makes use of the servlet in question
- After the time specified on an UnavailableException has expired
- At some arbitrary point in the web application or application server lifetime
What is the default value for MSGLEVEL keyword?
- MSGLEVEL=(1,0)
- MSGLEVEL=(0,1)
- MSGLEVEL=(1,1)
- MSGLEVEL=(2,1)
What is keyword to make the job run for an unlimited time.
- TIME=(14,39)
- TIME=NOLIMIT
- TIME=UNLIMIT
- TIME=MAXIMUM
What is default delimiter for instream data?
- /*
- //*
- */
- &&
Which one is the valid statement? 1 SYSIN DD DSN=DUMMY 2 SYSIN DD * 3 SYSIN DD DUMMY 4 SYSIN DD DSN=NULLFILE
- ALL THE ABOVE
- ONLY 1 AND 2
- ONLY 2 AND 4
- ONLY 2, 3 AND 4
Which one denotes the end of the JOB?
- //
- //*
- /*
- END
What the JES will do?
- Checks for errors.
- Schedules the job
- Manages the output processing of the job.
- All the above
What is the Normal DISP position for temporary files?
- OLD
- PASS
- MOD
- SHR
Continuation of the previous line should begin in the column
- 3
- Anywhere between 5 to 17
- Anywhere between 4 to 16
- Anywhere between 1 to 17
What is program used to compile the COBOL program?
- IGYWCL
- IEWL
- IEBCOMPILE
- IGYCRCTL
If the condition in the COND parameter satisfies what will happen?
- Step will not execute
- Step will abend
- Step will execute
- S0C7
What should be the DD name if we use the IBM utility IEBGENER?
- SYSUT1
- SYSIN
- DD1
- SYSPRINT
Which library will have the load modules of the IBM utilities?
- SYS1.LINKLIB
- SYS1.SOTREPROC
- SYS1.CATPROC
- SYS1.PROCLIB