网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
问答题
A jar contains 30 coins, of which 20 are nickels and 10 are dimes. If 7 coins are removed, how many nickels are left?  (1) More nickels are removed than dimes.  (2) The remaining coins in the jar are worth $1.55.

参考答案

参考解析
解析:
条件1没有涉及具体数字,无法计算剩余的分币数量;条件2可以计算,故本题选B项。
更多 “问答题A jar contains 30 coins, of which 20 are nickels and 10 are dimes. If 7 coins are removed, how many nickels are left?  (1) More nickels are removed than dimes.  (2) The remaining coins in the jar are worth $1.55.” 相关考题
考题 30. How many coins did Jim dig out from the garden?A.Five.B.Many coins.C. No coin at all.D.Only one.

考题 We drop a piece of metal into a jar full of water, the metal will float if it weighs less than______.A. an equal amount of silverB. an equal amount of goldC. all the water in the jar nowD. the water that leaves the jar

考题 18 of the EU members have replaced their national currencies by Euro notes and coins ______ 2002. A、atB、forC、since

考题 In the writer's view what is being used more efficiently.?A.Money holdings.B.Cheek deposits.C.Coins.D.Metering and vending machines.

考题 18 of the EU members have replaced their national currencies by Euro notes and coins ()2002.A. forB. atC. since

考题 Click the Exhibit button. Given the fully-qualified class names: com.foo.bar.Dog com.foo.bar.blatz.Book com.bar.Car com.bar.blatz.Sun Which graph represents the correct directory structure for a JAR file from which those classes can be used by the compiler and JVM? ()A.Jar AB.Jar BC.Jar CD.Jar DE.Jar E

考题 Given:Which is true?() A.If line 10 is removed, the compilation succeeds.B.If line 11 is removed, the compilation succeeds.C.If line 12 is removed, the compilation succeeds.D.If line 13 is removed, the compilation succeeds.E.More than one line must be removed for compilation to succeed.

考题 使用VC6打开考生文件夹下的工程test36_1,此工程包含一个源程序文件test36_1.cpp,但该程序运行有问题,请改正函数中的错误,使该程序的输出结果为:2源程序文件test36_1.cpp清单如下:include<iostream.h>class amount;class coins{/***************** found *****************/enum units {penny, nickel, dime, quarter, half_dollar}/***************** found *****************/class amount;};class amount{/***************** found *****************/coins:units money;public:void setm();int germ();};void amount::setm(){money = coins::dime;}int amount::getm(){return money;}int main ( ){amount ob;ob.setm();cout << ob.getm()<<end1;return 0;}

考题 【T1】A.TO OBTAINB.MADE OFC.IS WORTH A.IT IS CHEAPER【T1】______SILVERB.THE COINS WERE ACTUALLY【T2】______SILVERC.THE SILVER IN COINS【T3】______MUCH MORE LESS THAN 40 YEARS AGO IN THE UNITED STATES, IT WAS COMMON TO CHANGE A ONE-DOLLAR BILL FOR A DOLLAR"S WORTH OF SILVER.THAT IS BECAUSE【T4】______.BUT THOSE DAYS ARE GONE.THERE IS NO SILVER IN TODAY"S COINS.WHEN THE PRICE OF THE PRECIOUS METAL RISES ABOVE ITS FACE VALUE AS MONEY, THE METAL WILL BECOME MORE VALUABLE IN OTHER USES.SILVER COINS ARE NO LONGER IN CIRCULATION BECAUSE【T5】______THAN THEIR FACE VALUE.A SILVER FIRM COULD FIND THAT【T6】______BY MELTING DOWN COINS THAN BY BUYING IT ON THE COMMODITY MARKETS.COINS TODAY ARE MADE OF AN ALLOY OF CHEAPER METALS.

考题 【T2】A.TO OBTAINB.MADE OFC.IS WORTH A.IT IS CHEAPER【T1】______SILVERB.THE COINS WERE ACTUALLY【T2】______SILVERC.THE SILVER IN COINS【T3】______MUCH MORE LESS THAN 40 YEARS AGO IN THE UNITED STATES, IT WAS COMMON TO CHANGE A ONE-DOLLAR BILL FOR A DOLLAR"S WORTH OF SILVER.THAT IS BECAUSE【T4】______.BUT THOSE DAYS ARE GONE.THERE IS NO SILVER IN TODAY"S COINS.WHEN THE PRICE OF THE PRECIOUS METAL RISES ABOVE ITS FACE VALUE AS MONEY, THE METAL WILL BECOME MORE VALUABLE IN OTHER USES.SILVER COINS ARE NO LONGER IN CIRCULATION BECAUSE【T5】______THAN THEIR FACE VALUE.A SILVER FIRM COULD FIND THAT【T6】______BY MELTING DOWN COINS THAN BY BUYING IT ON THE COMMODITY MARKETS.COINS TODAY ARE MADE OF AN ALLOY OF CHEAPER METALS.

考题 【T3】A.TO OBTAINB.MADE OFC.IS WORTH A.IT IS CHEAPER【T1】______SILVERB.THE COINS WERE ACTUALLY【T2】______SILVERC.THE SILVER IN COINS【T3】______MUCH MORE LESS THAN 40 YEARS AGO IN THE UNITED STATES, IT WAS COMMON TO CHANGE A ONE-DOLLAR BILL FOR A DOLLAR"S WORTH OF SILVER.THAT IS BECAUSE【T4】______.BUT THOSE DAYS ARE GONE.THERE IS NO SILVER IN TODAY"S COINS.WHEN THE PRICE OF THE PRECIOUS METAL RISES ABOVE ITS FACE VALUE AS MONEY, THE METAL WILL BECOME MORE VALUABLE IN OTHER USES.SILVER COINS ARE NO LONGER IN CIRCULATION BECAUSE【T5】______THAN THEIR FACE VALUE.A SILVER FIRM COULD FIND THAT【T6】______BY MELTING DOWN COINS THAN BY BUYING IT ON THE COMMODITY MARKETS.COINS TODAY ARE MADE OF AN ALLOY OF CHEAPER METALS.

考题 阅读下列说明和C代码,回答问题 1 至问题 3,将解答写在答题纸的对应栏内。 【说明】 假币问题:有n枚硬币,其中有一枚是假币,己知假币的重量较轻。现只有一个天平,要求用尽量少的比较次数找出这枚假币。 【分析问题】 将n枚硬币分成相等的两部分: (1)当n为偶数时,将前后两部分,即 1...n/2和n/2+1...0,放在天平的两端,较轻的一端里有假币,继续在较轻的这部分硬币中用同样的方法找出假币: (2)当n为奇数时,将前后两部分,即1..(n -1)/2和(n+1)/2+1...0,放在天平的两端,较轻的一端里有假币,继续在较轻的这部分硬币中用同样的方法找出假币;若两端重量相等,则中间的硬币,即第 (n+1)/2枚硬币是假币。 【C代码】 下面是算法的C语言实现,其中: coins[]: 硬币数组 first,last:当前考虑的硬币数组中的第一个和最后一个下标 include stdio.h int getCounterfeitCoin(int coins[], int first,int last) { int firstSum = 0,lastSum = 0; int ; If(first==last-1){ /*只剩两枚硬币*/ if(coins[first] coins[last]) return first; return last; } if((last - first + 1) % 2 ==0){ /*偶数枚硬币*/ for(i = first;i ( 1 );i++){ firstSum+= coins[i]; } for(i=first + (last-first) / 2 + 1;i last +1;i++){ lastSum += coins[i]; } if( 2 ){ Return getCounterfeitCoin(coins,first,first+(last-first)/2;) }else{ Return getCounterfeitCoin(coins,first+(last-first)/2+1,last;) } } else{ /*奇数枚硬币*/ For(i=first;ifirst+(last-first)/2;i++){ firstSum+=coins[i]; } For(i=first+(last-first)/2+1;ilast+1;i++){ lastSum+=coins[i]; } If(firstSumlastSum){ return getCounterfeitCoin(coins,first,first+(last-first)/2-1); }else if(firstSumlastSum){ return getCounterfeitCoin(coins,first+(last-first)/2-1,last); }else{ Return( 3 ) } } }【问题一】 根据题干说明,填充C代码中的空(1)-(3) 【问题二】 根据题干说明和C代码,算法采用了( )设计策略。 函数getCounterfeitCoin的时间复杂度为( )(用O表示)。 【问题三】 若输入的硬币数为30,则最少的比较次数为( ),最多的比较次数为( )。

考题 How are hardware errors removed from an error report that are more than 30 days old?()A、 /usr/bin/errpt -d H 30B、 /usr/sbin/errclear - J H 30C、 /usr/bin/errclear -d H 30D、 /usr/sbin/errclear -j H 30

考题 Given the fully-qualified class names:  com.foo.bar.Dog  com.foo.bar.blatz.Book  com.bar.Car  com.bar.blatz.Sun  Which graph represents the correct directory structure for a JAR file from which those classes can be used by the compiler and JYM?() A、 Jar AB、 Jar BC、 Jar CD、 Jar DE、 Jar E

考题 单选题Given the fully-qualified class names:  com.foo.bar.Dog  com.foo.bar.blatz.Book  com.bar.Car  com.bar.blatz.Sun  Which graph represents the correct directory structure for a JAR file from which those classes can be used by the compiler and JYM?()A  Jar AB  Jar BC  Jar CD  Jar DE  Jar E

考题 单选题A jar contains 54 marbles each of which is blue, green, or white. The probability of selecting a blue marble at random from the jar is 1/3, and the probability of selecting a green marble at random is 4/9. How many white marbles does the jar contain?A 6B 8C 9D 12E 18

考题 单选题A jar contains 10 blue, 8 green, and 6 red marbles. Every time a marble is removed from the jar, it is not replaced. What is the probability, to the nearest hundredth, that the second marble chosen is green if the first marble chosen is green?A 0.28B 0.29C 0.30D 0.31E 0. 32

考题 填空题The ratio of men to women in a room is 4: 5. If the room contains three more women than men, how many women are in the room?____

考题 单选题Phil has x quarters, y dimes, and z nickels and nothing else. Which of the following expressions represents the amount of money that Phil has, in dollars?A 0.25x + 0.10y + 0.05zB 2.5x + 1. 0y + 0.5zC 25x + 10y + 5zD 0.25x + 0.10y + 0.5zE 25x + 10y + 50z

考题 单选题Which of the following is NOT the purpose of America’s central bank?A Controlling the flow of money in the economy.B Overseeing the activities of banks.C Producing and distributing bank notes and coins.D Contributing to the maintenance of a stable financial system.

考题 单选题Which of the following statements is TRUE? ______.A Credit cards have more advantages than travellers’ cheques.B Dollar bills are as convenient as credit cards.C One-cent coins have been withdrawn from circulation.D You can increase your credit limit as you like.

考题 单选题Given: Which is true?()A If line 10 is removed, the compilation succeeds.B If line 11 is removed, the compilation succeeds.C If line 12 is removed, the compilation succeeds.D If line 13 is removed, the compilation succeeds.E More than one line must be removed for compilation to succeed.

考题 单选题A They tried to collect more money than the ruler asked for.B They were given some silver and gold coins by the ruler.C They were excused from paying income tax.D They enjoyed being invited to dinner at the ruler’s palace.

考题 单选题In a wallet containing nickels and dimes, the ratio of nickels to dimes is 2:5. If there are 42 coins in all, what is the value of the dimes?A $1. 20B $3. 00C $1. 50D 75€E 30€

考题 单选题Three fair coins are tossed at the same time. What is the probability that all three coins will come up heads or all will come up tails?A 1/8B 1/6C 1/4D 1/3E 3/8

考题 单选题Three coins are tossed at the same time. What is the probability that exactly two heads are face up?A 1/8B 1/4C 3/8D 1/2E 5/8

考题 单选题How are hardware errors removed from an error report that are more than 30 days old?()A  /usr/bin/errpt -d H 30B  /usr/sbin/errclear - J H 30C  /usr/bin/errclear -d H 30D  /usr/sbin/errclear -j H 30