${true or false}
${requestScope[foo][0] > 500}
${requestScope[’foo’][1] = 420}
${(requestScope[’foo’][0] lt 50) && (3 gt 2)}
第1题:
A.Truetrue
B.Falsetrue
C.Falsetrue0
D.TruetrueInfinity
E.FalsetrueInfinity
第2题:
Given: String value = getServletContext().getInitParameter("foo"); in an HttpServlet and a web applicationdeployment descriptor that contains:
第3题:
ClicktheExhibitbutton.Given:11.<%com.example.Advisoradvisor=newcom.example.Advisor();%>12.<%request.setAttribute("foo",advisor);%>Assumingtherearenoother"foo"attributesinthewebapplication,whichthreearevalidELexpressionsforretrievingtheadvicepropertyofadvisor?()
A.${foo.advice}
B.${request.foo.advice}
C.${requestScope.foo.advice}
D.${requestScope[foo[advice]]}
E.${requestScope["foo"]["advice"]}
第4题:
int index = 1; boolean test = new Boolean; boolean foo= test [index]; What is the result?()
第5题:
public class Delta { static boolean foo(char c) { System.out.print(c); return true; } public static void main( String[] argv ) { int i =0; for ( foo(‘A’); foo(‘B’)&&(i<2); foo(‘C’)){ i++ ; foo(‘D’); } } } 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题:
5. String foo = “base”; 6. foo.substring(0,3); 7. foo.concat(“ket”) 8. Type the value of foo at line 8.()
第8题:
A.${trueorfalse}
B.${requestScope[foo][0]>500}
C.${requestScope[’foo’][1]=420}
D.${(requestScope[’foo’][0]lt50)&&(3gt2)}
第9题:
Given an EL function foo, in namespace func, that requires a long as a parameter and returns a Map, which two are valid invocations of function foo?()
第10题:
Given: 8.int index = 1: 9.Boolean [] test = new boolcan [3]; 10.boolcan foo = test [index]; What is the result()?