JSP/JSP - Java (MCQ) questions and answers Sample Test,Sample questions

Question:
 How many jsp implicit objects are there and these objects are created by the web container that are available to all the jsp pages?

1.8

2.9

3.10

4.7


Question:
 In JSP page directive which attribute defines the MIME(Multipurpose Internet Mail Extension) type of the HTTP response?

1.import

2.Content Type

3.Extends

4.Info


Question:
 Which can generate HTML dynamically on the client but can hardly interact with the web server to perform complex tasks like database access and image processing etc. in JSP?

1.vs.Static HTML

2.vs.Server-Side Includes

3.vs.Pure Servlets

4.Vs.JavaScript


Question:
 Which packages does a JSP API consist of?

1.javax.servlet.jsp

2.java.servlet

3.javax.servlet.jsp.tagext

4.Both A & C


Question:
 Which tag is used to execute java source code in JSP?

1.Declaration Tag

2.Scriptlet tag

3.Expression tag

4.None of the above


Question:
A JSP page consists of which tags?

1.HTML tags

2.JSP tags

3.Both A & B

4.None of the above


Question:
In JSP Action tags which tags are used for bean development?

1.jsp:useBean

2.jsp:setPoperty

3.jsp:getProperty

4.All mentioned above


Question:
In JSP how many ways are there to perform exception handling?

1.3

2.2

3.4

4.5


Question:
What technique is used for the authentication mechanism in the servlet specification?

1.Role Based Authentication

2.Form Based Authentication

3.Both A & B

4.None of the above


Question:
Which action tags are used in JSP for developing web application with Java Bean?

1.jsp:useBean

2.jsp:setProperty

3.jsp:getProperty

4.Both B & C


Question:
Which attribute specifies a JSP page that should process any exceptions thrown but not caught in the current page?

1.The ErrorPage Attribute

2.The IsErrorPage Attribute

3.Both A & B

4.None of the above


Question:
Which Error Handling in Java handles runtime errors with exceptions If an exception is not caught in your JSP or Servlet Resin will use a special error page to send results back to the browser Resin uses a default error page unless you explicitly provide an error page yourself?

1.Client Request Time Processing Errors

2.Compilation Time Processing Errors

3.JSP Translation Time Processing Errors

4.None of the above


Question:
Which is the Microsoft solution for providing dynamic Web content?

1.ASP

2.JSP

3.Both A & B

4.None of the above


Question:
Which JSP Action tags is used to include the content of another resource it may be jsp html or servlet?

1.jsp:include

2.jsp:forward

3.jsp:plugin

4.jsp:papam


Question:
Which of the following is an advantage of the statement � Separation of business logic from JSP ?

1.Custom Tags in JSP

2.JSP Standard Tag Library

3.All the above

4.None of the above


Question:
Which technology do we mix our business logic with the presentation logic?

1.Servlet

2.JSP

3.Both A & B

4.None of the above


Question:
Which two interfaces does the javax.servlet.jsp package have?

1. JspPage

2.HttpJspPage

3.JspWriter

4. Both A & B


More MCQS

  1. JSP Fundamentals. (MCQs) Questions
  2. JSP - Java (MCQ) questions and answers
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!