JCL and JSP Programming Fundamentals
Quiz covering JCL (Job Control Language) for IBM mainframe systems and JSP (JavaServer Pages) for Java web development
Questions
What should be the record length for a variable length file?
- It should be equal to length for variable length records
- It should be equal to four plus the record length for variable length records
- It should be a multiple of four plus the record length for variable length records
- It should be multiple of variable record length
- None
For getting the dump of user and system areas to the output device when a job terminates, we have to use which parameter?
- SYSMDUMP
- SYSABEND
- SYSUDUMP
- Any of the above
- None
To request that the system dump the storage occupied by a failing program, --- DD statement can code in the step to be dumped?
- SYSABEND
- SYSMDUMP
- SYSUDUMP
- Any of the above
- None
What is the maximum number of DD stmt a step can have?
- 100
- 15
- 300
- 255
What is the default value for MSGLEVEL keyword?
- MSGLEVEL=(1,0)
- MSGLEVEL=(0,1)
- MSGLEVEL=(1,1)
- MSGLEVEL=(2,1)
In jsp the java bean can not used in below scope
- application
- session
- request
- page
What is keyword to make the job run for an unlimited time.
- TIME=(14,39)
- TIME=NOLIMIT
- TIME=UNLIMIT
- TIME=MAXIMUM
Name the implicit variable available to JSP pages that may be used to access all the other implicit objects.
- page
- pageContext
- context
- object
- jspPave
What is default delimiter for instream data?
- /*
- //*
- */
- &&
Which of the following statements are true for jsp:usebean. Select the two correct answers.
- The id attribute must be defined for <jsp:usebean>.
- The scope attribute must be defined for <jsp:usebean>.
- The class attribute must be defined for <jsp:usebean>.
- The <jsp:usebean> must include either type or class attribute or both.
Which is the correct statement which will check only for errors?
- TYPRUN=COMPILE
- TYPRUN=ERRFREE
- TYPRUN=HOLD
- TYPRUN=SCAN
A bean with a property color is loaded using the following statement <jsp:usebean id="fruit" class="Fruit"/> Which of the following statements may be used to print the value of color property of the bean. Select the one correct answer.
- <jsp:getColor bean="fruit"/>
- <jsp:getProperty id="fruit" property="color"/>
- <jsp:getProperty bean="fruit" property="color"/>
- <jsp:getProperty name="fruit" property="color"/>
- <jsp:getProperty class="Fruit" property="color"/>
What IBM utility is used to rename a dataset?
- IEBCOPY
- IEBGENER
- IEHPROGM
- IEBCOMPR
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
- ONLY 2
A bean with a property color is loaded using the following statement <jsp:usebean id="fruit" class="Fruit"/> Which of the following statements may be used to set the of color property of the bean. Select the one correct answer.
- <jsp:setColor id="fruit" property="color" value="white"/>
- <jsp:setColor name="fruit" property="color" value="white"/>
- <jsp:setValue name="fruit" property="color" value="white"/>
- <jsp:setProperty name="fruit" property="color" value="white">
- <jsp:setProperty name="fruit" property="color" value="white"/>
A bean with a property color is loaded using the following statement <jsp:usebean id="fruit" class="Fruit"/> What happens when the following statement is executed. Select the one correct answer. <jsp:setProperty name="fruit" property="*"/>
- This is incorrect syntax of <jsp:setProperty/> and will generate a compilation error. Either value or param must be defined.
- All the properties of the fruit bean are initialized to a value of null.
- All the properties of the fruit bean are assigned the values of input parameters of the JSP page that have the same name.
- All the properties of the fruit bean are initialized to a value of *.
Is the following statement true or false. If the isThreadSafe attribute of the page directive is false, then the generated servlet implements the SingleThreadModel interface.
- True
- False
Which of the following represents a correct syntax for usebean. Select the two correct answers.
- <jsp:usebean id="fruit scope ="page"/>
- <jsp:usebean id="fruit type ="String"/>
- <jsp:usebean id="fruit type ="String" beanName="Fruit"/>
- <jsp:usebean id="fruit class="Fruit" beanName="Fruit"/>
Name the default value of the scope atribute of jsp:usebean.
- page
- application
- session
- request
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