A web application contains a tag file called beta.tag in /WEB-INF/tags/alpha. A JSP page called sort.jspexists in the web application and contains only this JSP code: 1.<%@ taglib prefix="x" 2.tagdir="/WEB-INF/tags/alpha" %> 3. The sort.jsp page is reque

题目

A web application contains a tag file called beta.tag in /WEB-INF/tags/alpha. A JSP page called sort.jspexists in the web application and contains only this JSP code: 1.<%@ taglib prefix="x" 2.tagdir="/WEB-INF/tags/alpha" %> 3. The sort.jsp page is requested. Which two are true?()

  • A、Tag files can only be accessed using a tagdir attribute.
  • B、The sort.jsp page translates successfully and invokes the tag defined by beta.tag.
  • C、The sort.jsp page produces a translation error because a taglib directive must always have a uriattribute.
  • D、Tag files can only be placed in /WEB-INF/tags, and NOT in any subdirectories of /WEB- INF/tags.
  • E、The tagdir attribute in line 2 can be replaced by a uri attribute if a TLD referring to beta.tag is createdand added to the web application.

相似考题
参考答案和解析
正确答案:B,E
更多“<x:beta>A web applica”相关问题
  • 第1题:

    Given:Which code, inserted at line 16, will cause a java.lang.ClassCastException?()

    A.Alpha a = x;

    B.Foo f = (Delta)x;

    C.Foo f = (Alpha)x;

    D.Beta b = (Beta)(Alpha)x;


    参考答案:B

  • 第2题:

    设有一共用体变量定义如下: union data { long w; float x; int y; char z;}; union data beta; 执行下列语句后,正确的共用体变量beta的值是( )。 beta.w=123456; beta.y=888; beta.x=3.1416; beta.z='x';

    A.123456

    B.888

    C.3.1416

    D.'X'


    正确答案:D
    解析:因为共用体的所有成员共同占据一段存储空间,所以成员数据后赋的值会覆盖掉先赋的值,最后共用体变量中保留的就是最后一次赋的值。注意:共用体变量所占存储单元字节数的计算。

  • 第3题:

    现有如F包结构:      com     |一一X      |    |一一Alpha.class     |    |      |    |一一y      I         |一一Beta.class     |      |l-- Gamma.class    和类:      class Test  {  Alpha a;  Beta b; Gamma c;  }  哪三个必须加入到类Test中,以使其通过编译?() 

    • A、 package y;
    • B、 package com;
    • C、 import com.x.y.*;
    • D、 import com.x.*;

    正确答案:B,C,D

  • 第4题:

    class Beta {  public static void main(String [] args) {  Integer x = new Integer(6) * 7;  if (x != 42) {  System.out.print("42 ");  } else if (x 〈 new Integer(44-1)) {  System.out.println("less");  } else {  System.out.print("done"); } } }  结果是什么?() 

    • A、less
    • B、42
    • C、done
    • D、编译失败

    正确答案:A

  • 第5题:

    Alpha测试与beta的区别?


    正确答案: Alpha测试在系统开发接近完成时对应用系统的测试;测试后仍然会有少量的设计变更。这种测试一般由最终用户或其它人员完成,不能由程序或测试员完成。
    Beta测试当开发和测试根本完成时所做的测试,最终的错误和问题需要在最终发行前找到。这种测试一般由最终用户或其它人员完成,不能由程序员或测试员完成。

  • 第6题:

    投资的β(Beta)


    正确答案: β度量的是与投资相联的不可分散的风险。对于一种股票而言,它表示所有现行股票的收益发生变化时,一种股票的收益会如何敏感地变化。

  • 第7题:

    A resource group, MY_APP, has the following configuration: Resource Group NameMY_APP Participating Node Name(s)Alpha Beta GammaStartup Policy Online On Home Node Only Fallover Policy Fallover To Next Priority Node In The List Fallback Policy Fallback To Higher Priority Node InThe List MY_APP is currently running on node Beta. MY_APP is then moved to node Gamma using C-SPOC.Nodes Alpha and Beta are shutdown and restarted. Node Alpha stabilizes approx 60 seconds before nodeBeta. What happens to the resource group, MY_APP, when nodes Alpha and Beta are restarted?()

    • A、It moves to Beta
    • B、It stays on Gamma
    • C、It moves to Alpha
    • D、It moves to Alpha, then to Beta

    正确答案:B

  • 第8题:

    10. interface Foo {}  11. class Alpha implements Foo {}  12. class Beta extends Alpha {}  13. class Delta extends Beta {  14. public static void main( String[] args) {  15. Beta x = new Beta();  16. // insert code here  17. }  18. }  Which code, inserted at line 16, will cause a java.lang.ClassCastException?() 

    • A、 Alpha a = x;
    • B、 Foo f= (Delta)x;
    • C、 Foo f= (Alpha)x;
    • D、 Beta b = (Beta)(Alpha)x;

    正确答案:B

  • 第9题:

    多选题
    A web application contains a tag file called beta.tag in /WEB-INF/tags/alpha. A JSP page called sort.jspexists in the web application and contains only this JSP code: 1. 3. The sort.jsp page is requested. Which two are true?()
    A

    Tag files can only be accessed using a tagdir attribute.

    B

    The sort.jsp page translates successfully and invokes the tag defined by beta.tag.

    C

    The sort.jsp page produces a translation error because a taglib directive must always have a uriattribute.

    D

    Tag files can only be placed in /WEB-INF/tags, and NOT in any subdirectories of /WEB- INF/tags.

    E

    The tagdir attribute in line 2 can be replaced by a uri attribute if a TLD referring to beta.tag is createdand added to the web application.


    正确答案: A,B
    解析: 暂无解析

  • 第10题:

    单选题
    interface Beta {}  class Alpha implements Beta {  String testIt() {  return “Tested”;  }  }  public class Main1 {  static Beta getIt() {  return new Alpha();  }  public static void main( String[] args ) {  Beta b = getIt();  System.out.println( b.testIt() );  }  }  What is the result?()
    A

     Tested

    B

     Compilation fails.

    C

     The code runs with no output.

    D

     An exception is thrown at runtime.


    正确答案: A
    解析: 暂无解析

  • 第11题:

    单选题
    class Beta {   public static void main(String [] args) {   Integer x = new Integer(6) * 7;   if (x != 42) {   System.out.print("42 ");   } else if (x.equals(42)) {   System.out.print("dot = ");   } else {   System.out.print("done");   } } }   结果为:()
    A

    42

    B

    done

    C

    dot =

    D

    编译失败


    正确答案: B
    解析: 暂无解析

  • 第12题:

    单选题
    Given: Which code, inserted at line 16, will cause a java.lang.ClassCastException?()
    A

    Alpha a = x;

    B

    Foo f = (Delta)x;

    C

    Foo f = (Alpha)x;

    D

    Beta b = (Beta)(Alpha)x;


    正确答案: B
    解析: 暂无解析

  • 第13题:

    如果类Alpha继承了类Beta,则类Alpha称为派生类,类Beta称为【 】类。


    正确答案:基
    基 解析:在C++语言中,可以从一个类派生出另一个类。派生其他类的类称为基类(或父类),被派生的类称为派生类(或子类)。一个派生类可以从一个基类派生,也可以从多个基类派生。从一个基类派生的继承称为单继承,从多个基类派生的继承称为多继承。

  • 第14题:

    在Windows 9x环境中,若要调试运行ASP网页,此时的Web服务应选用()

    • A、IIS 5.0
    • B、IE浏览器
    • C、Peer Web Server
    • D、Personal Web Server

    正确答案:D

  • 第15题:

    已知符号定义语句如下: ALPHA EQU 100 BETA EQU 25 GAMMA EQU 2 分别求下列各表达式的值。 (1)ALPHA*4GTBETA (2)ALPHAMODGAMMA+BETA (3)(BETA/3)LE5 (4)ALPHAANDBETA (5)GAMMAXOR(BETAEQ25)


    正确答案: (1)ALPHA*4GTBETA=100*4GT25=0FFFFH
    (2)ALPHAMODGAMMA+BETA=100MOD2+25=25
    (3)(BETA/3)LE5=(25/3)LE5=0
    (4)ALPHAANDBETA=100AND25=64H&19H=0
    (5)GAMMAXOR(BETAEQ25)=2⊕(25EQ25)=0FFFDH

  • 第16题:

    现有包结构:  com |-- x | |-- Alpha.class | | | |-- y | |-- Beta.class | |-- Gamma.class  和类:  //insert code here  import com.*;  import com.x.y.*;  class Test { Alpha a; Beta b; Gamma c; }  哪两行分别插入后可允许代码编译?() 

    • A、package com.;
    • B、import com.x;
    • C、package com.x;
    • D、import com.x.Alpha;

    正确答案:C,D

  • 第17题:

    现有如下包结构:  com |-- x | |-- Alpha.class | | | |-- y | |-- Beta.class | |-- Gamma.class  和类:  class Test { Alpha a; Beta b; Gamma c; }  哪三个必须加入到类 Test 中,以使其通过编译?()

    • A、package y;
    • B、package com;
    • C、import com.x.*;
    • D、import com.x.y.*

    正确答案:B,C,D

  • 第18题:

    下列对Beta测试描述正确的是()

    • A、Beta测试需要用户参加
    • B、Beta测试也称之为独立测试

    正确答案:A

  • 第19题:

    class Beta {   public static void main(String [] args) {   Integer x = new Integer(6) * 7;   if (x != 42) {   System.out.print("42 ");   } else if (x.equals(42)) {   System.out.print("dot = ");   } else {   System.out.print("done");   } } }   结果为:()  

    • A、42
    • B、done
    • C、dot =
    • D、编译失败

    正确答案:C

  • 第20题:

    interface Beta {}  class Alpha implements Beta {  String testIt() {  return “Tested”;  }  }  public class Main1 {  static Beta getIt() {  return new Alpha();  }  public static void main( String[] args ) {  Beta b = getIt();  System.out.println( b.testIt() );  }  }  What is the result?()  

    • A、 Tested
    • B、 Compilation fails.
    • C、 The code runs with no output.
    • D、 An exception is thrown at runtime.

    正确答案:B

  • 第21题:

    单选题
    10. interface Foo {}  11. class Alpha implements Foo {}  12. class Beta extends Alpha {}  13. class Delta extends Beta {  14. public static void main( String[] args) {  15. Beta x = new Beta();  16. // insert code here  17. }  18. }  Which code, inserted at line 16, will cause a java.lang.ClassCastException?()
    A

     Alpha a = x;

    B

     Foo f= (Delta)x;

    C

     Foo f= (Alpha)x;

    D

     Beta b = (Beta)(Alpha)x;


    正确答案: A
    解析: 暂无解析

  • 第22题:

    多选题
    10. class Foo {  11. static void alpha() { /* more code here */ }  12. void beta() { /* more code here */ }  13. }  Which two are true?()
    A

    Foo.beta() is a valid invocation of beta().

    B

    Foo.alpha() is a valid invocation of alpha().

    C

    Method beta() can directly call method alpha().

    D

    Method alpha() can directly call method beta().


    正确答案: B,A
    解析: 暂无解析

  • 第23题:

    单选题
    Which code, inserted at line 16, will cause a java.lang.ClassCastException?()
    A

    Alpha a=x;

    B

    Foo f=(Delta)x;

    C

    Foo f=(Alpha)x;

    D

    Beta b=(Beta)(Alpha)x;


    正确答案: B
    解析: 暂无解析