The attribute foo is placed in the application
A ServletContextListener registered for that servlet is notified
A ServletAttributeListener registered for that servlet is notified
An HttpSessionAttributeListener registered for that servlet is notified
第1题:
int index = 1; String test = new String; String foo = test[index]; What is the result?()
第2题:
Given: String value = getServletContext().getInitParameter("foo"); in an HttpServlet and a web applicationdeployment descriptor that contains:
第3题:
A.Theattributefooisplacedintheapplication
B.AServletContextListenerregisteredforthatservletisnotified
C.AServletAttributeListenerregisteredforthatservletisnotified
D.AnHttpSessionAttributeListenerregisteredforthatservletisnotified
第4题:
int index = 1; int foo = new int ; int bar = foo [index]; int baz = bar + index; What is the result?()
第5题:
Given: 8.int index = 1: 9.Boolean [] test = new boolcan [3]; 10.boolcan foo = test [index]; What is the result()?
第6题:
Given: 6.<% int[] nums = {42, 420, 4200}; 7.request.setAttribute("foo", nums); %> Which two successfully translate and result in a value of true?()
第7题:
int index = 1; boolean test = new Boolean; boolean foo= test [index]; What is the result?()
第8题:
Given: 3.public class MyTagHandler extends TagSupport { 4.public int doStartTag() { 5.// insert code here 6.// return an int 7.} 8.// more code here ... 18.} There is a single attribute foo in the session scope. Which three code fragments,inserted independently atline 5,return the value of the attribute?()
第9题:
String foo = “blue”; Boolean[]bar = new Boolean [1]; if (bar[0]) { foo = “green”; } What is the result? ()
第10题:
Given the HttpServlet code: getServletContext().setAttribute(“foo”, “value”); What is the result?()