问题 单项选择题

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

A.0XA6

B.-1E3

C.1840

D.0144

答案

参考答案:D

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

听力题

根据短文内容和首字母提示,在下文空格处填入适当的词使短文完整。在答题卡标有题号的横线上,写出空缺处各单词的正确形式。(每空一词)

Once there was a baby eagle(鹰) living in a nest (巢)on a cliff(山崖). The baby eagle loved his nest. It was warm, soft, and comfortable. And even b 小题1:, he had all the food and love. When the baby eagle was h__小题2:___, his mother would always come just in time with the delicious food.

He was growing h____小题3:____ day after day. But suddenly his world changed one day. His mother stopped coming to the nest. He was full of s___小题4:___ and fear. He thought he would die soon. He cried, but nobody heard him.

Two days later, his mother a___小题5:___with some nice food. The baby eagle was wild with joy. But his mother put the food at the top of the m____小题6:_____ and then looked down at her baby. The baby eagle cried out. “Mum, why did you do this to m__小题7:___? I’m hungry. I will die if I have nothing to eat.”

“Here is the l___小题8:____ meal that I give you. Come and get it by yourself,” his mother said. Then she flew down and pushed the baby eagle out of the nest.

The baby eagle f___小题9:____ down, faster and faster. He looked down at the earth. The ground was much closer. Then something strange happened. The air caught behind his arms and he began to fly! He wasn’t moving to the ground any more. Instead, his eyes were pointed up at the sun.

“You are f___小题10:____! You can make it!” his mother smiled.

多项选择题