问题 单项选择题

下列属于合法的Java标识符是

A._cat

B.5books

C.+static

D.-3.14159

答案

参考答案:A

解析: 本题考查Java标识符的命名规则。这是考试重点内容。 Java中标识符的命名规则是:标识符以字母、下划线、美元符作为首字符的字符串序列:标识符是区分大小写的;标识符的字符数没有限制。由此可见Java中标识符不能以数字开头,所以选项B错误,不能以"+"开头,选项C错误,不能以"-"开头,选项D错误,只有选项A是正确答案。

阅读理解

阅读理解。

     Being a youth is one thing, and being a good one is another. A good youth should have these qualities

(品德): First of all, health. A healthy body is the best riches. Without it, nothing can be done well. If you

are poor in health, you will have to take medicine day after day. You can even work, do sports and so on.

Secondly, one must be of good quality. Always do something good for others. Help those in trouble and

care about the people around you. If everyone did the same, what a wonderful world this would be! Thirdly,

one must have the ability (能力) to work with others. Cooperation and communication (合作和交流) are two

important keys to better human relations. Everyone needs friends because no one can live through life alone

or do everything he wants to.

     Besides the examples above, patriotism is the one we should never forget. Patriotism means a love for

one's country. It is one of the highest qualities of human's. Everyone should love his own country. But people

sometimes think that patriots (爱国者) must be fighters or that they live in a time of fighting for their country.

That is wrong. A good youth's work is not only fighting. A good youth will do the things his country asks him

to do. I think a good youth of today should also have some training in art. If everyone can enjoy art and be able

to make more of it for others, then people will live better and enjoy more.

1. What's the first thing a good youth should have?

A. A healthy body.

B. The best riches.

C. The good ability.

D. The patriotism.

2. A person who has good qualities should ________.

A. think of himself

B. help others that need help

C. help the people they know

D. always do as others do

3. The writer tells us that working with others is ________.

A. good for some people

B. important for everyone

C. not necessary to good friends

D interesting

4. From the passage we know the patriots must be ________.

A. fighters to protect their countries

B. people who fight for their countries

C. people who do what their country wants them to do

D. fighters live in a time of fighting for their country

5. It you want to be a good youth of today, ________.

A. you should live alone

B. you should also know art

C. you can keep your own ideas

D. you should fight for your country

单项选择题