T4Tutorials .PK

JAVA SERVER PAGES MCQs – CHAPTER 6 DAE

1. . Java Server Pages (JSP) is a:

(A) Desktop app programming


(B) Client-side programming


(C) Server-side programming


(D) AI programming




2. . The life cycle starts with the ______ of JSP.

(A) Declaration


(B) Initialization


(C) Creation


(D) None of these




3. . Fourth step of life cycle of JSP is:

(A) Instantiation


(B) Request Processing


(C) Class loading


(D) Translation




4. . ______ method will initiate the servlet instance.

(A) None


(B) _jspdestroy()


(C) Both


(D) _jspinit()




5. . The scripting elements provide the ability to insert ______ inside the JSP.

(A) Java code


(B) HTML code


(C) CSS code


(D) None




6. . Syntax of JSP scriptlet tag is:

')"> (A) <% java source code %>


')"> (B)

')"> (C)

')"> (D)



7. . The JSP scriptlet tag can only declare:

(A) Variables


(B) Instance


(C) Methods


(D) None




8. . The declaration of JSP declaration tag is placed outside the ______ method.

(A) _jspdestroy()


(B) _jspServiceINIT()


(C) _jspService()


(D) All of above




9. . JSP action tag ______ includes another resource.

(A) None


(B) jsp:contain


(C) jsp:exclude


(D) jsp:include




10. . ______ tag is used for bean development.

(A) All of above


(B) jsp:setProperty


(C) jsp:getProperty


(D) jsp:useBean




Exit mobile version