T4Tutorials .PK

CUSTOM TAGS MCQs – CHAPTER 9 DAE

1. . Which technology do we mix our business logic with the presentation logic?

(A) Servlet


(B) JSP


(C) Both A and B


(D) None of the above




2. . Which of the following is an advantage of the statement – Separation of business logic from JSP?

(A) Custom Tags in JSP


(B) JSP Standard Tag Library


(C) All the above


(D) None of the above




3. . Which tag is used to execute Java source code in JSP?

(A) Scriptlet tag


(B) Declaration Tag


(C) Expression tag


(D) None of the above




4. . A JSP page consists of which tags?

(A) HTML tags


(B) JSP tags


(C) None of the above


(D) Both A & B




5. . Which packages does a JSP API consist of?

(A) javax.servlet.jsp


(B) Both A & C


(C) javax.servlet.jsp.tagext


(D) java.servlet




6. . Which of the scripting of JSP is not putting content into service method of the converted servlet?

(A) Expressions


(B) Declarations


(C) Scriptlets


(D) None of the above




7. . The difference between Servlets and JSP is the ______.

(A) Syntax


(B) Compilation


(C) Translation


(D) Both A and B




8. . JSP includes a mechanism for defining ______ or custom tags.

(A) Static attributes


(B) Local attributes


(C) Dynamic attributes


(D) Global attributes




9. . Which is not a directive?

(A) include


(B) export


(C) page


(D) taglib




10. . Which HTTP method is sent by browser that asks the server to get the page only?

(A) POST


(B) OPTION


(C) PUT


(D) GET




Exit mobile version