Internet / AI Technology University (ITU/AITU)
Fast Login - available after registration
Created by info@itofthefuture.com
Welcome Anonimous.User to this quiz related to
Test JSP and Servlets
.
Read the question and choose the best answer.
Time is limited to 40 seconds!
Important! Do not forget to rank the quality of the question (from bad to excellent)
.
An initiator of the quiz will get royalty score for QnAs created by her/him and can win the Top Creativity Prize.
Question:
Given the following bean class and the following JSP, what will be the output in the JSP? The JSP is called with the query string: a=A&b=B&c=C package com.theserver.theproject; public class MyBean { private String a = "A"; private String b = "B"; private String c = "C"; public void setA(String s) { a = s; } public void setB(String s) { b = s; } public void setC(String s) { c = s; } public String getAll() { return a + b + c; } } <jsp:useBean id="myBean" class="com.theserver.theproject.MyBean" /> <jsp:setProperty name="myBean" property="*" /> <jsp:getProperty name="myBean" property="all" /> <jsp:setProperty name="myBean" property="a" param="b" /> <jsp:setProperty name="myBean" property="b" param="c" /> <jsp:setProperty name="myBean" property="c" param="a" /> <jsp:getProperty name="myBean" property="all" />
CAB BCA
nullnullnull nullnullnull
ABC BCA
nullnullnull BCA
ABC nullnullnull
ABC ABC
ABC BAC
Rank the
Quality
of the Question from "-10" (bad) or "0" (not clear) to 10 (correct) or even 20 (very good!)
-10 (bad/wrong)
0 (not clear)
10 (correct)
20 (very good!)
Your summary report will be available to you and your instructor. Thank you for your work!!!