JCL and JSP Programming Fundamentals

Quiz covering JCL (Job Control Language) for IBM mainframe systems and JSP (JavaServer Pages) for Java web development

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What should be the record length for a variable length file?

  1. It should be equal to length for variable length records
  2. It should be equal to four plus the record length for variable length records
  3. It should be a multiple of four plus the record length for variable length records
  4. It should be multiple of variable record length
  5. None
Question 2 Multiple Choice (Single Answer)

For getting the dump of user and system areas to the output device when a job terminates, we have to use which parameter?

  1. SYSMDUMP
  2. SYSABEND
  3. SYSUDUMP
  4. Any of the above
  5. None
Question 3 Multiple Choice (Single Answer)

To request that the system dump the storage occupied by a failing program, --- DD statement can code in the step to be dumped?

  1. SYSABEND
  2. SYSMDUMP
  3. SYSUDUMP
  4. Any of the above
  5. None
Question 4 Multiple Choice (Single Answer)

What is the maximum number of DD stmt a step can have?

  1. 100
  2. 15
  3. 300
  4. 255
Question 5 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 6 Multiple Choice (Multiple Answers)

In jsp the java bean can not used in below scope

  1. application
  2. session
  3. request
  4. page
Question 7 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 8 Multiple Choice (Multiple Answers)

Name the implicit variable available to JSP pages that may be used to access all the other implicit objects.

  1. page
  2. pageContext
  3. context
  4. object
  5. jspPave
Question 9 Multiple Choice (Single Answer)

What is default delimiter for instream data?

  1. /*
  2. //*
  3. */
  4. &&
Question 10 Multiple Choice (Multiple Answers)

Which of the following statements are true for jsp:usebean. Select the two correct answers.

  1. The id attribute must be defined for <jsp:usebean>.
  2. The scope attribute must be defined for <jsp:usebean>.
  3. The class attribute must be defined for <jsp:usebean>.
  4. The <jsp:usebean> must include either type or class attribute or both.
Question 11 Multiple Choice (Single Answer)

Which is the correct statement which will check only for errors?

  1. TYPRUN=COMPILE
  2. TYPRUN=ERRFREE
  3. TYPRUN=HOLD
  4. TYPRUN=SCAN
Question 12 Multiple Choice (Multiple Answers)

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.

  1. <jsp:getColor bean="fruit"/>
  2. <jsp:getProperty id="fruit" property="color"/>
  3. <jsp:getProperty bean="fruit" property="color"/>
  4. <jsp:getProperty name="fruit" property="color"/>
  5. <jsp:getProperty class="Fruit" property="color"/>
Question 13 Multiple Choice (Single Answer)

What IBM utility is used to rename a dataset?

  1. IEBCOPY
  2. IEBGENER
  3. IEHPROGM
  4. IEBCOMPR
Question 14 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
  5. ONLY 2
Question 15 Multiple Choice (Multiple Answers)

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.

  1. <jsp:setColor id="fruit" property="color" value="white"/>
  2. <jsp:setColor name="fruit" property="color" value="white"/>
  3. <jsp:setValue name="fruit" property="color" value="white"/>
  4. <jsp:setProperty name="fruit" property="color" value="white">
  5. <jsp:setProperty name="fruit" property="color" value="white"/>
Question 16 Multiple Choice (Multiple Answers)

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="*"/>

  1. This is incorrect syntax of <jsp:setProperty/> and will generate a compilation error. Either value or param must be defined.
  2. All the properties of the fruit bean are initialized to a value of null.
  3. All the properties of the fruit bean are assigned the values of input parameters of the JSP page that have the same name.
  4. All the properties of the fruit bean are initialized to a value of *.
Question 17 True/False

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.

  1. True
  2. False
Question 18 Multiple Choice (Multiple Answers)

Which of the following represents a correct syntax for usebean. Select the two correct answers.

  1. <jsp:usebean id="fruit scope ="page"/>
  2. <jsp:usebean id="fruit type ="String"/>
  3. <jsp:usebean id="fruit type ="String" beanName="Fruit"/>
  4. <jsp:usebean id="fruit class="Fruit" beanName="Fruit"/>
Question 19 Multiple Choice (Multiple Answers)

Name the default value of the scope atribute of jsp:usebean.

  1. page
  2. application
  3. session
  4. request
Question 20 Multiple Choice (Single Answer)

If DISP parameter is not coded in the DD statement that what is the default value?

  1. DISP=OLD,DELETE,KEEP
  2. DISP=OLD,KEEP,KEEP
  3. DISP=NEW,DELETE,DELETE
  4. DISP=SHR,KEEP,DELETE