问题 单项选择题

下列代表八进制整数的是( )。

A.0XA6

B.-1E3

C.1840

D.0144

答案

参考答案:D

解析: 本题考查Java语言中的整型常量。题目不难,但属于学习程序设计语言的基础,应有所了解。 整型常量有3种书写格式;十进制整数,如156, -230,345;八进制整数:以0开头,如012表示十进制的10;十六进制整数:以0x或OX开头,如0X123表示十进制数291。由此可见,选项A表示的是十六进制整数,选项B不是整数形式,选项C是十进制整数,选项D是八进制整数,所以D为本题正确选项。

阅读理解

Questionnaire
Read the questions and answer YES or NO, then you will find out how good you are.
1. When you don’t understand something, you ask questions.
2. You like listening to older people talk about the past.
3. You think that you can learn something interesting from everyone around you.
4. You are brave enough when you have to talk to people don’t know.
5. You enjoy reading books about famous people.
6. You always see and talk to different people.
7. You are interested in learning new ways of doing things.
8. You enjoy sharing experiences with friends and learning from people of all ages.
9. You talk a lot about yourself.
10.Even if you are often wrong, you make your own decisions.
11.You hate teaching what you are good at: sports, technology, whatever.
12.Your parents don’t understand you, so you don’t talk to them much.
SCORE NOW!
Score 2 points if you answer YES to each of the first 8 questions, and 0 if you choose NO.
Score 2 points if you answer NO to each of the last 4 questions, and 0 if you choose YES.
18—24  You are friendly and open minded. You make people feel important by
listening to what they have to say. You’ll probably succeed in learning all kinds of interesting things. Good for you!
10—16  Remember that every single person you know can teach you something. You will greatly make your life rich and colourful.
0—8    About 400 years ago, a famous writer wrote, “No man is an island.” This is still true today. Try to be more open and interested in people around you.
小题1:If you say “YES” to all these questions, you’ll get ____ points.
A.12B.16C.20D.24
小题2:When you score 22 points, you are ________.
A.shy and nervousB.silent and serious
C.open and friendlyD.brave and strong
小题3:“No man is an island.” in the text probably means that ________.
A.the famous writer was very clever
B.everything is the same as 400 years ago
C.you will feel lonely if on an island
D.you can not live alone in the world
小题4:The questions are used to test whether you are willing to ________.
A.learn from othersB.help other people
C.do all by yourselfD.depend on others
单项选择题