SCWCD(310-083)

单选题Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains:   What is the result?()A <b></b>B <b>12</b>C The JSP fails to execute.D <% int i = 12 %><b><%= i %></b>

题目
单选题
Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains:   What is the result?()
A

<b></b>

B

<b>12</b>

C

The JSP fails to execute.

D

<% int i = 12 %><b><%= i %></b>

如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

11. public static void main(String[] args) {  12. Object obj =new int[] { 1,2,3 };  13. int[] someArray = (int[])obj;  14. for (int i: someArray) System.out.print(i +“ “)  15. }  What is the result? ()

  • A、 1 2 3
  • B、 Compilation fails because of an error in line 12.
  • C、 Compilation fails because of an error in line 13.
  • D、 Compilation fails because of an error in line 14.
  • E、 A ClassCastException is thrown at runtime.

正确答案:A

第2题:

Given the element from the web application deployment descriptor: /main/page1.jsp true and given that /main/page1.jsp contains: <% int i = 12; %> <%= i %>  What is the result?()

  • A、<b></b>
  • B、<b>12</b>
  • C、The JSP fails to execute.
  • D、<% int i = 12 %><b><%= i %></b>

正确答案:C

第3题:

Giventheelementfromthewebapplicationdeploymentdescriptor:<jsp-property-group><url-pattern>/main/page1.jsp</url-pattern><scripting-invalid>true</scripting-invalid></jsp-property-group>andgiventhat/main/page1.jspcontains:<%inti=12;%><b><%=i%></b>Whatistheresult?()

A.<b></b>

B.<b>12</b>

C.TheJSPfailstoexecute.

D.<%inti=12%><b><%=i%></b>


参考答案:C

第4题:

11. class Converter {  12. public static void main(String[] args) {  13. Integer i = args[0];  14. int j = 12;  15. System.out.println(”It is “ + (j==i) + “that j==i.”);  16. }  17. }  What is the result when the programmer attempts to compile the code and run it with the command java Converter 12?() 

  • A、 It is true that j==i.
  • B、 It is false that j==i.
  • C、 An exception is thrown at runtime.
  • D、 Compilation fails because of an error in line 13.

正确答案:D

第5题:

public static void main(String[] args) {  for (int i=0;i<= 10;i++){  if( i>6) break;  }  System.out.println(i);  }  What is the result?() 

  • A、 6
  • B、 7
  • C、 10
  • D、 11
  • E、 Compilation fails.
  • F、 An exception is thrown at runtime.

正确答案:E

第6题:

Which two are valid values for the  element inside a  element of a web application deployment descriptor?()

  • A、 NULL
  • B、 SECURE
  • C、 INTEGRAL
  • D、 ENCRYPTED
  • E、 CONFIDENTIAL

正确答案:C,E

第7题:

A developer wants a web application to be notified when the application is about to be shut down. Which two actions are necessary to accomplish this goal?()

  • A、Include a listener directive in a JSP page
  • B、configure a listener in the TLD file using the  element
  • C、Include a  element in the web application deployment descriptor
  • D、configure a listener in the application deployment descriptor, using the  element
  • E、Include a class implementing ServletContextListener as part of the web application deploymen

正确答案:D,E

第8题:

Given:What is the result when the programmer attempts to compile the code and run it with the command java Converter 12?()

A. It is true that j==i.

B. It is false that j==i.

C. An exception is thrown at runtime.

D. Compilation fails because of an error in line 13.


参考答案:D

第9题:

Given: String value = getServletContext().getInitParameter("foo"); in an HttpServlet and a web applicationdeployment descriptor that contains: foo frodo Which two are true?()

  • A、The foo initialization parameter CANNOT be set programmatically.
  • B、Compilation fails because getInitParameter returns type Object.
  • C、The foo initialization parameter is NOT a servlet initialization parameter.
  • D、Compilation fails because ServletContext does NOT have a getInitParameter method.
  • E、The foo parameter must be defined within the  element of the deployment descriptor.

正确答案:A,C

第10题:

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?()  

  • A、 ABDCBDCB
  • B、 ABCDABCD
  • C、 Compilation fails.
  • D、 An exception is thrown at runtime.

正确答案:A

更多相关问题