问题 填空题

假设邮费计算方法为:100克以内(含100克)收费5元,超过100克的部分每克加收0.2元。试编写程序,要求从键盘输入邮寄物品重量,并计算出邮费。

答案

参考答案:(A)正确的数据说明及输入(B)正确的表达式及分支结构(C)正确的结果输出(D)程序风格VFP语言参考语句代码:CLEARSET TALK OFFINPUT “输入一个数:” TO XIF X<=A00 Y=EELSE Y=(X-A00)*0.B+EENDI”计算结果为:”,YSET TALK ON

完形填空
In New York,on a Friday night, a poor young artist stood at the gate of a train station.He was playing his violin.His music was so great that many people put money into his      .
The next day ,the young artist came to the         place, and played the violin as usual. Different from the day before,he took out a piece of paper and put        on the ground.The paper read ,“Last night ,a man named George Sang put an important thing into my hat         .Please come to get it soon..”
After  about half an hour,a(an)          man there in a hurry, “Oh ,it’s you . You did come here.”The young violinist asked calmly, “Are you Mr George Sang?” “Yes!Yes!”Then the violinist asked , “Did you lose something?” “Lottery( * * ).It’s the most valuable lottery in my 70 years of life,”said the man.
The violinist       a lottery ticket. George Sang’s name was on it, so the violinist      it to him.
Later someone asked the violinist, “Since you         play the violin every day to make your tuition (学费)in the university, why didn’t you keep the lottery ticket for yourself?”
The violinist said, “Although  I don’t have much money, I live happily; but if I lose honesty, I won’t be happy forever.”
Through our lives , we can get a lot and lose so much . But being         should always be with us. If we act in a dishonest way, we may         in a short period. However, from the long-term view, we will be a loser.
小题1:
A.bowlB.hatC.pocketD.hands
小题2:
A.similarB.differentC.strangeD.same
小题3:
A.itB.itsC.theyD.them
小题4:
A.by thenB.by mistakeC.by the wayD.by hand
小题5:
A.youngB.oldC.smallD.tall
小题6:
A.took outB.took offC.took backD.took away
小题7:
A.soldB.boughtC.gaveD.lent
小题8:
A.couldB.had toC.shouldD.must
小题9:
A.kindB.richC.honestD.poor
小题10:
A.failB.relaxC.sufferD.succeed
单项选择题