JavaScript and JSP Web Development

Covers JavaScript fundamentals, DOM manipulation, event handling, and JSP server-side development techniques

14 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Validations can be performed by

  1. Map.xml only
  2. page handler only
  3. both map and page handler
  4. None of the above
Question 2 Multiple Choice (Single Answer)

Page Handlers for the page are defined in your

  1. map.xml
  2. web.xml
  3. ps.xml
  4. tag libraries
Question 3 Multiple Choice (Single Answer)

MetaDataAlias means

  1. Additional information for MetaDataReader
  2. Specifies complete class name of MetaDataReader class used to process the MetaData
  3. Field Name to use from metadata xml file
  4. .Should be at “2.0” unless you have specific reason for a different version
Question 4 Multiple Choice (Single Answer)

Custom tags are defined in

  1. tag libraries
  2. JSP
  3. Servlet
  4. Web.xml
Question 5 Multiple Choice (Single Answer)

How do u build a composite JSP?

  1. using <@include>
  2. using <jsp:include>
  3. using <@composite>
  4. using <jsp:composite>
Question 6 Multiple Choice (Single Answer)

Metadata Alias means

  1. Field Name to use from metadata xml file
  2. Additional information for MetaDataReader
  3. Specifies complete class name of MetaDataReader class used to process the MetaData
  4. Should be at “2.0” unless you have specific reason for a different version
Question 7 Multiple Choice (Multiple Answers)

What is iBatis ?

  1. A SQL Mapper
  2. A J2ee Framework
  3. A JDBC Framework
  4. An ORM Tool
Question 8 True/False

Java script case sensitive

  1. True
  2. False
Question 9 True/False

Java script does not provide error handling through try-catch block

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

What are the ways to assign event handlers in java script (for example, to show a message box while closing the window) ?

  1. window.onunload=function() { alert('closing'); }
  2. window.onunload+=onClose; function onClose() { alert('closing'); }
  3. window.onunload=onClose; function onClose() { alert('closing'); }
  4. All the above
Question 11 Multiple Choice (Single Answer)

How will you make a function to execute after 4 seconds ?

  1. setTimeout('functionname()',4)
  2. setTimeout('functionname()',4000)
  3. setTimeout('functionname()',400)
  4. None
Question 12 Multiple Choice (Single Answer)

How will you get the html object in java script using its ID ?

  1. var obj=document.findControl('controlId');
  2. var obj=document.getObjectById('controlId');
  3. var obj=document.getElementById('controlId');
  4. var obj=document.getObject('controlId');
Question 13 Multiple Choice (Single Answer)

From the current browser window, how to change the URL of the browser window which opened this current window ?

  1. window.parent.location='newpage.html'
  2. window.top.location='newpage.html'
  3. window.opener.location='newpage.html'
  4. Cannot be done
Question 14 Multiple Choice (Single Answer)

How to check if a value is a number?

  1. if (isNumeric(numberVar)) {}
  2. if (!isNaN(numberVar)) {}
  3. if (isNumber(numberVar)) {}
  4. if (type(numberVar)=='Number') {}