<x:beta>A web applica

题目

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.
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

现有包结构:com|--x||--Alpha.class||||--y||--Beta.class||--Gamma.class和类://insertcodehereimportcom.*;importcom.x.y.*;classTest{Alphaa;Betab;Gammac;}哪两行分别插入后可允许代码编译?()

A.packagecom.;

B.importcom.x;

C.packagecom.x;

D.importcom.x.Alpha;


参考答案:C, D

第2题:

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

第3题:

14 Alpha buys goods from Beta. At 30 June 2005 Beta’s account in Alpha’s records showed $5,700 owing to Beta.

Beta submitted a statement to Alpha as at the same date showing a balance due of $5,200.

Which of the following could account fully for the difference?

A Alpha has sent a cheque to Beta for $500 which has not yet been received by Beta.

B The credit side of Beta’s account in Alpha’s records has been undercast by $500.

C An invoice for $250 from Beta has been treated in Alpha’s records as if it had been a credit note.

D Beta has issued a credit note for $500 to Alpha which Alpha has not yet received.


正确答案:D

第4题:

现有如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

第5题:

设有一共用体变量定义如下: 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
解析:因为共用体的所有成员共同占据一段存储空间,所以成员数据后赋的值会覆盖掉先赋的值,最后共用体变量中保留的就是最后一次赋的值。注意:共用体变量所占存储单元字节数的计算。

第6题:

10.interfaceFoo{}11.classAlphaimplementsFoo{}12.classBetaextendsAlpha{}13.classDeltaextendsBeta{14.publicstaticvoidmain(String[]args){15.Betax=newBeta();16.//insertcodehere17.}18.}Whichcode,insertedatline16,willcauseajava.lang.ClassCastException?()

A.Alphaa=x;

B.Foof=(Delta)x;

C.Foof=(Alpha)x;

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


参考答案:B

第7题:

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


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

第8题:

Awebapplicationcontainsatagfilecalledbeta.tagin/WEB-INF/tags/alpha.AJSPpagecalledsort.jspexistsinthewebapplicationandcontainsonlythisJSPcode:1.<%@taglibprefix="x"2.tagdir="/WEB-INF/tags/alpha"%>3.<x:beta/>Thesort.jsppageisrequested.Whichtwoaretrue?()

A.Tagfilescanonlybeaccessedusingatagdirattribute.

B.Thesort.jsppagetranslatessuccessfullyandinvokesthetagdefinedbybeta.tag.

C.Thesort.jsppageproducesatranslationerrorbecauseataglibdirectivemustalwayshaveauriattribute.

D.Tagfilescanonlybeplacedin/WEB-INF/tags,andNOTinanysubdirectoriesof/WEB-INF/tags.

E.Thetagdirattributeinline2canbereplacedbyauriattributeifaTLDreferringtobeta.tagiscreatedandaddedtothewebapplication.


参考答案:B, E

第9题:

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

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

正确答案:D

第10题:

已知符号定义语句如下: 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

更多相关问题