${true or false}
${requestScope[foo][0] > 500}
${requestScope[’foo’][1] = 420}
${(requestScope[’foo’][0] lt 50) && (3 gt 2)}
第1题:
Given: String value = getServletContext().getInitParameter("foo"); in an HttpServlet and a web applicationdeployment descriptor that contains:
第2题:
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?()
第3题:
int index = 1; boolean test = new Boolean; boolean foo= test [index]; What is the result?()
第4题:
String foo = “blue”; Boolean[]bar = new Boolean [1]; if (bar[0]) { foo = “green”; } What is the result? ()
第5题:
int index = 1; boolean[] test = new Boolean[3]; boolean foo= test [index]; What is the result?()
第6题:
${true or false}
${requestScope[foo][0] > 500}
${requestScope[’foo’][1] = 420}
${(requestScope[’foo’][0] lt 50) && (3 gt 2)}
第7题:
ABDCBDCB
ABCDABCD
Compilation fails.
An exception is thrown at runtime.
第8题:
Foo has the value of “”
Foo has the value of null.
Foo has the value of “blue”
Foo has the value of “green”
An exception is thrown.
The code will not compile.
第9题:
The foo initialization parameter CANNOT be set programmatically.
Compilation fails because getInitParameter returns type Object.
The foo initialization parameter is NOT a servlet initialization parameter.
Compilation fails because ServletContext does NOT have a getInitParameter method.
The foo parameter must be defined within the
第10题:
${func(1)}
${foo:func(4)}
${func:foo(2)}
${foo(5):func}
${func:foo(easy)}
${func:foo(3).name}
第11题:
${func(1)}
${foo:func(4)}
${func:foo(2)}
${foo(5):func}
${func:foo(“easy”)}
${func:foo(“3”).name}
第12题:
The doStartTag method is called once.
The doAfterBody method is NOT called.
The EVAL_PAGE constant is a valid return value for the doEndTag method.
The SKIP_PAGE constant is a valid return value for the doStartTag method.
The EVAL_BODY_BUFFERED constant is a valid return value for the doStartTag method.
第13题:
5. String foo = “base”; 6. foo.substring(0,3); 7. foo.concat(“ket”) 8. Type the value of foo at line 8.()
第14题:
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?()
第15题:
Given: 8.int index = 1: 9.Boolean [] test = new boolcan [3]; 10.boolcan foo = test [index]; What is the result()?
第16题:
Given: 1.<% int[] nums = {42,420,4200}; 2.request.setAttribute("foo", nums); %> 3.${5 + 3 lt 6} 4.${requestScope[’foo’][0] ne 10 div 0} 5. ${10 div 0} What is the result?()
第17题:
Foo has the value of 0.
Foo has the value of null.
Foo has the value of true.
Foo has the value of false.
An exception is thrown.
The code will not compile.
第18题:
第19题:
Foo has the value of “”
Foo has the value of null.
Foo has the value of “blue”
Foo has the value of “green”
An exception is thrown.
The code will not compile.
第20题:
foo has the value of 0.
foo has the value of null.
foo has the value of true.
foo has the value of false.
An-exception is thrown.
The code will not compile.
第21题:
True true
False true
False true 0
True true Infinity
False true Infinity
第22题:
Foo has the value of 0.
Foo has the value of null.
Foo has the value of true.
Foo has the value of false.
An exception is thrown.
The code will not compile.
第23题:
True true
False true
False true 0
True true Infinity
False true Infinity