问题 单项选择题

以下程序运行后,输出结果为______。
main()
int y=18,i=0 j,a[8];
do
a[i]=y%2; i++; y=y/2;
while(y>=1);
for(j=1-1;j>=0;j--)
printf("%d",a[j]);
printf("\n");

A) 10000
B) 10010
C) 00110
D) 10100

答案

参考答案:B

填空题
根据短文内容从方框内所给的单词中选择恰当的词填入短文空白,两个词是多余的。
hungry   hospital   lunch   thirsty    miss   sad   asleep   come   see   quiet   think   leave eye

      It was a hot day during the holiday. My mother and I got on the bus which would take us to my
grandma's village. It was so hot that I felt very     1   . Then I began to think of the sweet watermelons
and other fruits in Grandma's house. I could hardly wait to arrive there and    2    my grandma earlier.
       It look us one more hour to get there. When we walked into the house, Grandma was busy
preparing    3    in the kitchen. I knew from her smile face that she was very glad to see us. She brought
out a big watermelon and cut it. It was so nice to eat the watermelon on such a hot day.
       After lunch my mother felt tired and went to bed to have a rest. I asked my grandma to tell me a fair tale.
We sat on the bed and she began to tell it. I listened to her     4   . It was not long before I fell    5    . I
was dreaming when a terrible sound woke me up. I saw Grandma was lying on the ground. I couldn't
believe my    6    . How fearful a sight was! I hurried to wake my mother up. We took Grandma to the
    7    in a hurry. But it was too late. My grandma's heart stopped beating (跳动) when we got there.
You'll never imagine how    8    we felt then.
       Grandma was very well all the time. I had never imagine she would    9    us so soon. That evening
I lay in bed alone. Tears ran down my face. I prayed (祈祷) and prayed, wishing my grandma would be
able to    10    back.
      Now several years have passed, My dear grandma, where are you? I    11    you so much.
1.______ 2.______ 3.______ 4.______ 5.______ 6.______
7.______ 8.______ 9.______ 10.______ 11.______

单项选择题