参考答案和解析
正确答案:D
更多“__________A. in factB. in particularC. as a wholeD. for example ”相关问题
  • 第1题:

    Why did you choose that one ____?

    A. for particular

    B. in particular

    C. on particular


    参考答案:B

  • 第2题:

    U.S. Treasuries are one example of ().

    A. bank accounts

    B. cash equivalents

    C. accounts receivable


    答案:B

    解析: 因为U.S. Treasuries是指美国国库券,而选项B,cash equivalents是现金等价物的意思。现金等价物 是指符合下述两个条件的流动性很强的短期投资资产:(1)很容易就能兑换成固定数量的现金,(2)很快就会到期,因此其市价受利率变动影响不大,一般三个月内到期的投资符合这一标准。美国短期国库券等短期投资都属于现金等价物。


  • 第3题:

    ClicktheExhibitbutton.Aservletsetsasession-scopedattributeproductwithaninstanceofcom.example.ProductandforwardstoaJSP.Whichtwooutputthenameoftheproductintheresponse?()

    A.${product.name}

    B.<jsp:getPropertyname="product"property="name"/>

    C.<jsp:useBeanid="com.example.Product"/><%=product.getName()%>

    D.<jsp:getPropertyname="product"class="com.example.Product"property="name"/>


    参考答案:A, B

  • 第4题:

    ClicktheExhibitbutton.GiventheJSPcode:1.<%2.pageContext.setAttribute("product"

    ClicktheExhibitbutton.GiventheJSPcode:1.<%2.pageContext.setAttribute("product",3.newcom.example.Product("Pizza",0.99));4.%>5.<%--insertcodehere--%>Whichtwo,insertedatline5,outputthenameoftheproductintheresponse?()

    A.<%=product.getName()%>

    B.<jsp:useBeanid="product"class="com.example.Product"/><%=product.getName()%>

    C.<jsp:useBeanid="com.example.Product"scope="page"><%=product.getName()%></jspuseBean>

    D.<jsp:useBeanid="product"type="com.example.Product"scope="page"/><%=product.getName()%>


    参考答案:B, D

  • 第5题:

    Giventhatwww.example.com/SCWCDtestAppisavalidlydeployedJavaEEwebapplicationandthatalloftheJSPfilesspecifiedintherequestsbelowexistinthelocationsspecified.Whichtworequests,issuedfromabrowser,willreturnanHTTP404error?()

    A.http://www.example.com/SCWCDtestApp/test.jsp

    B.http://www.example.com/SCWCDtestApp/WEB-INF/test.jsp

    C.http://www.example.com/SCWCDtestApp/WEB-WAR/test.jsp

    D.http://www.example.com/SCWCDtestApp/Customer/test.jsp

    E.http://www.example.com/SCWCDtestApp/META-INF/test.jsp

    F.http://www.example.com/SCWCDtestApp/Customer/Update/test.jsp


    参考答案:B, E

  • 第6题:

    1.importjava.util.*;2.publicclassTestSet{3.enumExample{ONE,TWO,THREE}4.publicstaticvoidmain(String[]args){5.Collectioncoll=newArrayList();6.coll.add(Example.THREE);7.coll.add(Example.THREE);8.coll.add(Example.THREE);9.coll.add(Example.TWO);10.coll.add(Example.TWO);11.coll.add(Example.ONE);12.Setset=newHashSet(coll);13.}14.}Whichstatementistrueaboutthesetvariableonline12?()

    A.Thesetvariablecontainsallsixelementsfromthecollcollection,andtheorderisguaranteedtobepreserved.

    B.Thesetvariablecontainsonlythreeelementsfromthecollcollection,andtheorderisguaranteedtobepreserved.

    C.Thesetvariablecontainsallsixelementsfromthecoilcollection,buttheorderisNOTguaranteedtobepreserved.

    D.Thesetvariablecontainsonlythreeelementsfromthecoilcollection,buttheorderisNOTguaranteedtobepreserved.


    参考答案:D

  • 第7题:

    假定有如下程序:include using namespace std;int s =0;class example{ static int n

    假定有如下程序: #include <iostream> using namespace std; int s =0; class example{ static int n; public: example(int i){ n=i; } static void add( ){ s+=n; } }; int example::n=0; int main( ){ example a(2),b(5); example::add(); cout<<s<<endl; return 0; }程序运行后输出结果为( )。

    A.2

    B.3

    C.7

    D.5


    正确答案:D
    解析:程序中定义一个类example,它包括一个静态数据成员n和一个静态成员函数add(),并在类的构造函数中给类的私有静态数据成员n赋值。在主函数main()中,定义对象a(2)时,通过构造函数使静态数据成员n的值变为2;在定义对象b(5)时,通过构造函数使静态数据成员n=5,再执行example::add()使全局变量s=5。

  • 第8题:

    下面程序的输出结果是()。includeClass example{int a;public:example(int B.{a=b++

    下面程序的输出结果是( )。 #include<iostream.h> Class example {int a; public: example(int B.{a=b++;} void print(){a=a+1 cout<<a<<““;} void print()const{cout<<a<<““;} }; void main() {example x(3); Const example y(2); x.print();

    A.2 2

    B.4 3

    C.4 2

    D.3 2


    正确答案:C
    解析: “++”是右结合的,所以先赋值为3,最后输出3+1;常成员函数只有常对象才能调用,所以输出2。

  • 第9题:

    Which of the following storage devices is not an example of an optical storage device?()

    A. Blu-Ray

    B. DVD

    C. SSD

    D. CD


    参考答案:C

  • 第10题:

    一个元素内容中既含有文本也含有子元素,应当怎样定义()

    • A、<xs:element name="example" type=" xs:mixed ">
    • B、<xs:element name="example"> <xs:complexType>
    • C、<xs:element name="example"> <xs:complexType mixed="false">
    • D、<xs:element name="example"> <xs:complexType mixed="true">

    正确答案:D

  • 第11题:

    Solaris中,解压缩example.tar.gz的命令为

    • A、gunzip example.tar.gz
    • B、uncompress example.tar.gz
    • C、unpack example.tar.gz
    • D、zcat example.tar.gz

    正确答案:A

  • 第12题:

    多选题
    Given that www.example.com/SCWCDtestApp is a validly deployed Java EE web application and that all ofthe JSP files specified in the requests below exist in the locations specified. Which two requests,issuedfrom a browser,will return an HTTP 404 error?()
    A

    http://www.example.com/SCWCDtestApp/test.jsp

    B

    http://www.example.com/SCWCDtestApp/WEB-INF/test.jsp

    C

    http://www.example.com/SCWCDtestApp/WEB-WAR/test.jsp

    D

    http://www.example.com/SCWCDtestApp/Customer/test.jsp

    E

    http://www.example.com/SCWCDtestApp/META-INF/test.jsp

    F

    http://www.example.com/SCWCDtestApp/Customer/Update/test.jsp


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

  • 第13题:

    This incident at the meeting is a ______ example of his lack of self-control.

    A. typical

    B. bare

    C. close

    D. rapid


    答案:A

    解析:翻译:会议上的事故是他缺乏自控力的典型例子

    A典型的

    B空的,赤裸的

    C紧密的,近的,全面细致的

    D迅速的


  • 第14题:

    Assumethatanewstaglibrarycontainsthetags&e

    Assumethatanewstaglibrarycontainsthetagslookupanditem:

    LookupRetrievesthelatestnewsheadlinesandexecutesthetagbodyonceforeachheadline.ExposedaNESTEDpage-scopedattributecalledheadlineoftypecom.example.Headlinecontainingdetailsforthatheadline.

    ItemOutputstheHTMLforasinglenewsheadline.Acceptsanattributeinfooftypecom.example.Headlinecontainingdetailsfortheheadlinetoberendered.WhichsnippetofJSPcodereturnsthelatestnewsdeadlinesinanHTLMtable,oneperrow?()


    参考答案:C

  • 第15题:

    AwebcomponentaccessesalocalEJBsessionbeanwithacomponentinterfaceof com.example.Accountwithahomeinterfaceofcom.example.AccountHomeandaJNDIreferenceofejb/Account.WhichmakesthelocalEJBcomponentaccessibletothewebcomponentsinthewebapplicationdeploymentdescriptor?()

    A.

    B.

    C.

    D.


    参考答案:C

  • 第16题:

    YouneedtocreateaJavaBeanobjectthatisusedonlywithinthecurrentJSPpage.ItmustNOTbeaccessibletoanyotherpageincludingthosethatthispagemightimport.WhichJSPstandardactioncanaccomplishthisgoal?()

    A.<jsp:useBeanid=’pageBean’type=’com.example.MyBean’/>

    B.<jsp:useBeanid=’pageBean’class=’com.example.MyBean’/>

    C.<jsp:makeBeanid=’pageBean’type=’com.example.MyBean’/>

    D.<jsp:makeBeanid=’pageBean’class=’com.example.MyBean’/>


    参考答案:B

  • 第17题:

    Assumethatanewstaglibrarycontainsthetagslookupanditem:lookupRetrievesthelatestnews headlinesandexecutesthetagbodyonceforeachheadline.ExposesaNESTEDpagescopedattributecalledheadlineoftypecom.example.Headlinecontainingdetailsforthatheadline.itemOutputstheHTMLforasinglenewsheadline.Acceptsanattributeinfooftypecom.example.Headlinecontainingdetailsfortheheadlinetoberendered.WhichsnippetofJSPcodereturnsthelatestnewsheadlinesinanHTMLtable,oneperrow?()

    A.

    B.

    C.

    D.


    参考答案:C

  • 第18题:

    若有以下结构体定义,则______是正确的引用或定义。 struct example { int x; int y; }v1;

    A.example.x=10

    B.example v2.x=10

    C.struct v2;v2.x=10

    D.struct example v2={10};


    正确答案:D
    解析:在定义结构体变量时,不能只用结构体名example或关键字struct进行定义,必需要用结构体类型名structexample定义,在引用结构体成员变量时,需要用结构体变量名进行引用,所以选D。

  • 第19题:

    若有以下结构体定义,则______是正确的引用或定义。 struct example { int x; int y; }v1;

    A.example.x=10

    B.example v2.x=10

    C.example.x=10

    D.struct example v2={10};


    正确答案:D
    解析:在定义结构体变量时,不能只用结构体名example或关键字struct进行定义,必需要用结构体类型名struct example定义,在引用结构体成员变量时,需要用结构体变量名进行引用,所以选D。

  • 第20题:

    下面程序的输出结果是includeclass example{ int a;public: example(int b) {a=b++

    下面程序的输出结果是 #include<iostream,h> class example { int a; public: example(int b) {a=b++;} void print( ){a=a+1;cout<<a<<"";} void print( )const{cout<<a<<"";} }; void main( ) { example X(3);

    A.22

    B.43

    C.42

    D.32


    正确答案:C
    解析:“++”是右结合的,所以先赋值为3,最后输出3+1;常成员函数只有常对象才能调用,所以输出2。

  • 第21题:

    下面程序的输出结果是( )。 #include<iostreanl.h> class example { int a; public: example(int B.{a=b++;} void print{a=a+1;eout<<a<<””;} void printconst{cout<<a<<””;} }; void main { example x(3); const example Y(2); A print; B print; }

    A.2 2

    B.4 3

    C.4 2

    D.3 2


    正确答案:C
    “++”是右结合的,所以先赋值为3,最后输出3+1;常成员函数只有常对象才能调用,所以输出2。

  • 第22题:

    下面选项中是public void example(){...}的重载函数的有()。

    • A、public void example2(){...}
    • B、public int example(){...}
    • C、public void example(intm){...}
    • D、public int example(intm,floatF.{...}

    正确答案:C,D

  • 第23题:

    多选题
    下面选项中是public void example(){...}的重载函数的有()。
    A

    public void example2(){...}

    B

    public int example(){...}

    C

    public void example(intm){...}

    D

    public int example(intm,floatF.{...}


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