问题 单项选择题

下列有关Java语言的叙述中,正确的是【 】

A.Java是不区分大小写的

B.源文件名与public类型的类名必须相同

C.源文件其扩展名为.jar

D.源文件中public类的数目不限

答案

参考答案:B

解析:本题考查考生对Java语言概念的理解。这是考试重点内容,注意理解这些基本概念。Java语言和C语言不同,它是区分大小写的:Java程序的源文件扩展名为.class,.jar文件是由归档工具jar生成的.jar文件。源文件中public类的数目只能有0个或1个,用来指定应用程序类名,也是源文件名,所以选项B正确。

完形填空
A well-known speaker started his speech by holding up a $20 bill. In the room of 200, he asked, “What is this piece of   1  and is it worth anything?”
Hands started going up. “It is a $20 bill, encashable(可兑现的) in international and national   2  .”replied one of the   3  who raised their hands.
The speaker continued, “I am going to give this $20 to one of you, but first, let me do this.” He continued to crumple the 20 dollar bill using both his hands. He then               4  it and asked, “Who still wants it?” Still the hands were up in the air.
“Well,” he said, “what if I do this?” He dropped it on the  5  and started to step on it. He picked up the crumpled and   6  bill and said, “Now, who still wants it?”  
 went back into the air. “I think this bill is still   8  its value”, said a young man in an unsure  9 . “We can still use the bill to   10  goods worth 20 dollars,” said the other people.
“My friends, you have all learned a very   11  lesson in this exercise that we are just through with. You’ve   12  that I can crumple the $20 bill during the process as the effects can be seen clearly.   13 , no matter what I did to the piece of paper, you were   14  in your mind that my actions did not actually decrease its   15 . It was still worth $20.”
“Many times in our lives, we feel like as if we are   16 , crumpled, and ground into the dirt by the decisions we make and the circumstances that come our way. We feel as though we are   17 ; but no matter what happened or what will happen, please   18 , you will never lose your value.” Values that you keep in your heart will always   19  you from a difficult situation.
Dirty or clean, crumpled or not, you are still priceless to those who love you. The worth of our lives comes, not in what we do or who we know, but by ...WHO WE ARE.” “You are   20 — don’t ever forget it.”
小题1:
A.paperB.adviceC.informationD.luck
小题2:
A.organizationsB.flightsC.marketsD.conferences
小题3:
A.familyB.teachersC.speakersD.audience
小题4:
A.hidB.bought C.carried D.unfolded
小题5:
A.squareB.beach C.groundD.playground
小题6:
A.thinB.dirty C.newD.clear
小题7:
A.HandsB.Books C.HeadsD.Smoke
小题8:
A.losingB.reducing C.increasing D.holding
小题9:
A.soundB.voice C.noiseD.shout
小题10:
A.deliverB.buyC.sellD.produce
小题11:
A.boringB.difficult C.valuable D.painful
小题12:
A.heard B.seenC.forgottenD.doubted
小题13:
A.HoweverB.Therefore C.BesidesD.Otherwise
小题14:
A.sureB.curiousC.proudD.sad
小题15:
A.priceB.growth C.valueD.size
小题16:
A.droppedB.turnedC.lookedD.talked
小题17:
A.important B.confidentC.selfishD.useless
小题18:
A.acceptB.argue C.rememberD.decide
小题19:
A.leaveB.searchC.saveD.beat
小题20:
A.especialB.normal C.ordinaryD.special
单项选择题