niusouti.com

说明语句enum money{Fen,Jiao,Yuan=100,Tenyuan};每个枚举量所对应的实际值为:()。A、0,1,100,101B、1,2,100,101C、“Fen"或1,"Jiao"或2,"Yuan"或100,"Tenyuan"或101.D、“Fen","Jiao","Yuan","Tenyuan".

题目

说明语句enum money{Fen,Jiao,Yuan=100,Tenyuan};每个枚举量所对应的实际值为:()。

  • A、0,1,100,101
  • B、1,2,100,101
  • C、“Fen"或1,"Jiao"或2,"Yuan"或100,"Tenyuan"或101.
  • D、“Fen","Jiao","Yuan","Tenyuan".

相似考题
更多“说明语句enum money{Fen,Jiao,Yuan=100”相关问题
  • 第1题:

    设计一组测试用例,尽量使main函数的语句覆盖率能达到100%。如果认为该函数的语句覆盖率无法达到100%,需要说明原因。


    正确答案:设计测试用例如下: 输入数据:choose=0预期输出:0。 输入数据:choose=1预期输出:在链表某位置的结点后插入一个结点。 输入数据:choose=2预期输出:删除链表中某个位置的结点。 输入数据:choose=3预期输出:反转链表的链接顺序。 输入数据:choose=其他非零数预期输出:-1。 采用条件覆盖设计的测试用例如下表所示。
    设计测试用例如下: 输入数据:choose=0,预期输出:0。 输入数据:choose=1,预期输出:在链表某位置的结点后插入一个结点。 输入数据:choose=2,预期输出:删除链表中某个位置的结点。 输入数据:choose=3,预期输出:反转链表的链接顺序。 输入数据:choose=其他非零数,预期输出:-1。 采用条件覆盖设计的测试用例如下表所示。

  • 第2题:

    执行下列语句后的输出结果为______。enum {x1=3,b=4,C,d,e}data;printf("%d",data=d);

    A.6

    B.7

    C.8

    D.9


    正确答案:A

  • 第3题:

    在100BASE-TX的24 口jiao换机中,若采用全双工通信,每个端口通信的数据速率最大可以达到()。

    A.8.3Mb/s
    B.16.7Mb/s
    C.100Mb/s
    D.200Mb/s

    答案:D
    解析:
    100BASE-TX中的100表示端口速率是100Mbps,因为是全双工模式,收和发的速度都是100Mbps,因此每个端口总的速度是200Mbps

  • 第4题:

    阅读下列说明和Java代码,将应填入 (n) 处的字句写在答题纸的对应栏内。
    【说明】
    某大型购物中心欲开发一套收银软件,要求其能够支持购物中心在不同时期推出的各种促销活动,如打折、返利(例如,满300返100)等等。现采用策略(Strategy)模式实现该要求,得到如图6-1所示的类图。



    import javA.util.*;
    enum TYPE {
    NORMAL, CASH_DISCOUNT, CASH_RETURN};
    interface
    CashSuper {

    public (1) ;
    }
    class CashNormal
    implements CashSuper{ // 正常收费子类

    public double accptCash(double money){

    return money;
    }
    }
    class
    CashDiscount implements CashSuper {

    private double moneyDiscount;
    // 折扣率

    public CashDiscount(double moneyDiscount) {

    this moneyDiscount = moneyDiscount;
    }

    public double acceptCash(double money) {

    return money* moneyDiscount;
    }
    }
    class CashReturn
    implements CashSuper { // 满额返利

    private double moneyCondition;

    private double moneyReturn;

    public CashReturn(double moneyCondition, double moneyReturn) {


    this.moneyCondition =moneyCondition; // 满额数额

    this.moneyReturn =moneyReturn; // 返利数额
    }

    public double acceptCash(double money) {

    double result = money;

    if(money >= moneyCondition )

    result=money-Math.floor(money/moneyCondition ) *
    moneyReturn;

    return result;
    }
    }
    class
    CashContext_{

    private CashSuper cs;

    private TYPE t;

    public CashContext(TYPE t) {

    switch(t){

    case NORMAL: // 正常收费

    (2) ;

    break;

    case CASH_DISCOUNT: // 满300返100

    (3) ;

    break;

    case CASH_RETURN: // 打8折

    (4) ;

    break;

    }
    }

    public double GetResult(double money) {

    (5) ;
    }
    ∥此处略去main( )函数
    }


    答案:
    解析:
    (1)double acceptCash(double money) (2)cs = new CashNormal()(3)cs = new CashDiscount(0.8)(4)cs = new CashReturn(300,100)(5)return cs.acceptCash(money)

  • 第5题:

    “We will offer you 100 Yuan for immediate necessities”译成中文是“()”


    正确答案:我们将为您提供100元的临时生活补贴

  • 第6题:

    以下对枚举类型的定义,正确的是()

    • A、 enum a={one,two,three};
    • B、 enum a{a1,a2,a3};
    • C、 enum a{‘1’,’2’,’3’};
    • D、 enum a{ “one”,”two”,”three” };

    正确答案:B

  • 第7题:

    翻译以下关于邮政储蓄取款业务有关对话。 ①Customer: I want to withdraw 100,000yuan. ②Clerk: Have you made an appointment? ③Customer: No. ④Clerk: Sorry. If you withdraw the money over 50,000, you should make an appointment at least one day before.


    正确答案:①我想取10万元。 ②您预约了吗? ③没有。 ④很抱歉,如果您的取款额超过5万元,您至少应提前一天预约。

  • 第8题:

    多选题
    A:I want to buy some stamps with different face values .B:Special stamps?A:Yes.B:We have stamps of(    ).
    A

    60fen

    B

    2yuans

    C

    60fens

    D

    3yuan20fen


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

  • 第9题:

    单选题
    以下是一些C#中的枚举型的定义,其中错误的用法有()。
    A

    public enum var1{Mike=100,Nike=102,Jike}

    B

    public enum var1{Mike=100,Nike,Jike}

    C

    public enum var1{Mike=-1,Nike,Jike}

    D

    public enum var1{Mike,Nike,Jike}


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

  • 第10题:

    单选题
    A:How much()they? B:Two yuan twenty fen.
    A

    is

    B

    are

    C

    was

    D

    were


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

  • 第11题:

    判断题
    Beads, stones, seashells, paper, precious metals such as gold and silver, base metals such as iron have all been used as money. Today, money is printed on paper. A lot of countries use their own currency, with n ames such as dollar, pound, franc, ruble, yuan and so on. Since 2002, 18 of the EU members have replaced their national currencies by Euro notes and coins. If you want to pay for something in another currency, you have to change your money into the other money. If you want to travel outside your native country, you need to change your own country's money for the money of the country you are visiting. Most large banks sell foreign currencies. You can exchange money at a bank or at an office of a tourist agency Wherever you go, exchanging money puts you in touch with international finance, which is concerned with exchange rates between different currencies. Deciding the rate for the international exchange of money is one of the most complex aspects of international banking. Currency means money in the form of paper.
    A

    B


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

  • 第12题:

    单选题
    以下对枚举类型的定义,正确的是()
    A

     enum a={one,two,three};

    B

     enum a{a1,a2,a3};

    C

     enum a{‘1’,’2’,’3’};

    D

     enum a{ “one”,”two”,”three” };


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

  • 第13题:

    以下对枚举类型名的定义中正确的是______。

    A.enum a={one,two,three};

    B.enum a{one=9,two=-1,three};

    C.enum a={"one","two","three"};

    D.enum a{"one","two","three"};


    正确答案:B
    解析:声明枚举类型用enum开头。例如:enum weekday(sun,mon,tue,wed,thu,fri,sat); 说明:1、在C编译中,对枚举元素按常量处理,同时可以改变他们的值。2、枚举值可以用来做判断比较。3、一个整数不能直接赋给一个枚举变量。

  • 第14题:

    在Turbo C中,此定义和语句是合法的:enum aa{ a=5,b,c}bb;bb=(enum aa)5;( )

    此题为判断题(对,错)。


    正确答案:√

  • 第15题:

    阅读下列说明和C++代码,将应填入 (n) 处的字句写在答题纸的对应栏内。
    【说明】
    某大型购物中心欲开发一套收银软件,要求其能够支持购物中心在不同时期推出的各
    种促销活动,如打折、返利(例如,满300返100)等等。现采用策略(Strategy)模式实现该要求,得到如图5-1所示的类图。



    图5-1 策略模式类图

    【C++代码】
    #include
    using namespace std;
    enum TYPE{NORMAL, CASH_DISCOUNT, CASH_RETURN};
    class CashSuper{
    public:
    (1);
    };
    class CashNormal : public CashSuper { //正常收费子类
    public:
    double acceptCash(double money) {
    retum money; }
    };
    class CashDiscount : public CashSuper {
    private:
    double moneyDiscount; // 折扣率
    public:
    CashDiscount(double discount) { moneyDiscount=
    discount; }
    double acceptCash(double money) { retum money *
    moneyDiscount; }
    };
    class CashRetum : public CashSuper { // 满额返利
    private:
    double moneyCondition; // 满额数额
    double moneyReturn; // 返利数额
    public:
    CashRetnm(double
    motieyCondition, double moneyReturn) {

    this->moneyCondition=moneyCondition;

    this->moneyReturn=moneyRetum;
    }



    double acceptCash(double
    money) {
    double result =
    money;

    if(money>=moneyCondition)

    result=money-(int)(money/moneyCondition ) * moneyRetum;
    return
    result ;
    }
    };
    class CashContext {
    private:
    CashSuper *cs;
    public:
    CashContext(int type) {
    switch(type) {
    case
    NORMAL: //正常收费
    (2)
    ;
    break;
    case CASH_RETURN: //满300返100
    (3)
    ;
    break;
    case CASH_DISCOUNT: //打八折
    (4)
    ;
    break;
    }
    }
    double GetResult(double money) {
    (5) ;
    }
    };
    //此处略去main( )函数


    答案:
    解析:
    (1)virtual double acceptCash(double money) = 0
    (2)cs = new CashNormal()
    (3)cs = new CashReturn(300,100)
    (4)cs = new CashDiscount(0.8)
    (5)return cs->acceptCash(money)
    试题分析:
    策模式的结构图如下:

  • 第16题:

    Beads, stones, seashells, paper, precious metals such as gold and silver, base metals such as iron have all been used as money. Today, money is printed on paper. A lot of countries use their own currency, with n ames such as dollar, pound, franc, ruble, yuan and so on. Since 2002, 18 of the EU members have replaced their national currencies by Euro notes and coins. If you want to pay for something in another currency, you have to change your money into the other money. If you want to travel outside your native country, you need to change your own country's money for the money of the country you are visiting. Most large banks sell foreign currencies. You can exchange money at a bank or at an office of a tourist agency Wherever you go, exchanging money puts you in touch with international finance, which is concerned with exchange rates between different currencies. Deciding the rate for the international exchange of money is one of the most complex aspects of international banking. This best title for this passage is The history of money".


    正确答案:正确

  • 第17题:

    Beads, stones, seashells, paper, precious metals such as gold and silver, base metals such as iron have all been used as money. Today, money is printed on paper. A lot of countries use their own currency, with n ames such as dollar, pound, franc, ruble, yuan and so on. Since 2002, 18 of the EU members have replaced their national currencies by Euro notes and coins. If you want to pay for something in another currency, you have to change your money into the other money. If you want to travel outside your native country, you need to change your own country's money for the money of the country you are visiting. Most large banks sell foreign currencies. You can exchange money at a bank or at an office of a tourist agency Wherever you go, exchanging money puts you in touch with international finance, which is concerned with exchange rates between different currencies. Deciding the rate for the international exchange of money is one of the most complex aspects of international banking. Euro is available in all EU member countries.


    正确答案:正确

  • 第18题:

    以下对枚举类型名的定义中正确的是()。

    • A、enum a {"sum","mon","tue"};
    • B、enum a={sum,mon,tue};
    • C、enum a={"sum","mon","tue"};
    • D、enum a {sum=9,mon=-1,tue};

    正确答案:D

  • 第19题:

    填空题
    翻译以下关于邮政储蓄取款业务有关对话。 ①Customer: I want to withdraw 100,000yuan. ②Clerk: Have you made an appointment? ③Customer: No. ④Clerk: Sorry. If you withdraw the money over 50,000, you should make an appointment at least one day before.

    正确答案: ①我想取10万元。 ②您预约了吗? ③没有。 ④很抱歉,如果您的取款额超过5万元,您至少应提前一天预约。
    解析: 暂无解析

  • 第20题:

    单选题
    变量的类型定义中,优先级由高到低的顺序为()
    A

    类型说明语句、IMPLICIT 说明语句、隐含约定

    B

    隐含约定、IMPLICIT 说明语句、类型说明语句

    C

    IMPLICIT 说明语句、类型说明语句、隐含约定

    D

    隐含约定、类型说明语句、IMPLICIT 说明语句


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

  • 第21题:

    单选题
    —______pocket money do you usually get every month?—Fifty yuan. What about you?
    A

    How often

    B

    How long

    C

    How many

    D

    How much


    正确答案: A
    解析:
    句意:你每月有多少零花钱?”“五十元。你呢?”由题意可知,问题是问多少钱,钱是不可数名词,用how muchHow often表示频率,how long表示空间距离。因此选择D项。

  • 第22题:

    单选题
    设有下列数组说明语句:  REAL::A(1:10,-1:10)  该数组说明语句定义了数组A中的元素个数为()
    A

    100

    B

    110

    C

    120

    D

    121


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

  • 第23题:

    判断题
    Beads, stones, seashells, paper, precious metals such as gold and silver, base metals such as iron have all been used as money. Today, money is printed on paper. A lot of countries use their own currency, with n ames such as dollar, pound, franc, ruble, yuan and so on. Since 2002, 18 of the EU members have replaced their national currencies by Euro notes and coins. If you want to pay for something in another currency, you have to change your money into the other money. If you want to travel outside your native country, you need to change your own country's money for the money of the country you are visiting. Most large banks sell foreign currencies. You can exchange money at a bank or at an office of a tourist agency Wherever you go, exchanging money puts you in touch with international finance, which is concerned with exchange rates between different currencies. Deciding the rate for the international exchange of money is one of the most complex aspects of international banking. Foreign exchange rates have significant impact on the economy of a country.
    A

    B


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