问题 单项选择题

下列运算符中属于关系运算符的是

A.==

B.=

C.+=

D.-=

答案

参考答案:A

解析:
本题考查Java的关系运算符。Java的关系运算符如下表所示:

运算符表达式功能返回true值时的情况
op1>op2比较op1是否大于op2op1大于op2
op1<op2比较op1是否小于op2op1小于op2
>=op1>=op2比较op1是否大于等于op2op1大于等于op2
<=op1<=op2比较op1是否小于等于op2op1小于等于op2
==op1=op2比较op1是否等于op2op1等于op2
!=op1!=op2op1和op2不相等测试op1不等于op2
从表中即可判断,选项A是Java的关系运算符。而选项C和选项D中的运算符是 Java扩展的赋值运算符。Java中不存在选项B中的运算符。
本题的正确答案是选项A。

完形填空

It is reported that over 300 million people in China are suffering from nearsightedness. As more children have got eye trouble, their parents hope to cure the disease by some different ways, such as by correcting the way children read and sit. But in fact, one should start with the exercise with one’s feet. Here are three ways to save eyes.

First, don’t tie your shoes too closely. Try to wear comfortable and soft shoes and socks or walking without shoes and socks at home. While you are travelling, try to wear cloth shoes in order to improve blood circulation.

Second, walking on tiptoe is good for one’s eyesight. It can fight against eyesight trouble. Numbers show that most of ballet performers’ eyesight is better..

Third, rope skipping does good to one’s eyesight. When skipping the rope, one has to move quickly, making both the brain and the eyes excited. It may also help make one grow taller.

Besides foot exercises, it is good to pull one’s ears. Pulling the ears 20 times quickly is also a great way. It can keep one’s eyes healthy.

根据上面短文内容填空:

小题1:It is reported that _________ people have got eye trouble, especially_________.

小题2:In fact, one should start with the exercise with one’s feet instead of __________ children read and sit and there are ____________ ways to save eyes.

小题3: When we are traveling, we should try to wear _____________ because they are ________________.

小题4:Numbers show that most of  ___________ eyesight is better because ___________ is good for one’s eyesight.

小题5: It is also a great way _________20 times quickly besides__________ .

单项选择题