试题与答案

下列程序中画线处应填入的语句是( )。  classBase  {    pub

题型:单项选择题

题目:

下列程序中画线处应填入的语句是( )。  classBase  {    public:      voidfun( ){COUt<<"Baseoffun"<<endl;}  };      classDerived:publicBase  {    voidfun( )      {      _______//显示基类的成员函数fun       cout<<"Derivedoffun"<<endl;      }  };

A. Alt+F2

B. BBBBB

C. 随机出几个数

D. 文本框平均内容无变化

答案:

参考答案:D

解析:数组在Java语言中是当作对象处理的,它包含一个很重要的变量length,用来表示数组的长度。

试题推荐
题型:阅读理解

阅读理解。

     Do you know about the flu? The flu usually spreads quickly. In winter, lots of people may get the flu.

If you get sick, do you know what to do? Here are some tips.

     Drink lots of water. Water is good for your body when you get the flu.

     Get plenty of sleep. If you can't sleep, you can listen to music, watch a movie or read a book to relax

yourself.

      If you feel serious, ask your parents to take you to see a doctor. But don't take medicine until you see a

doctor.

     Wash your hands often! You certainly don't want to spread the flu to anyone else. Also, don't share cups

and eating utensils (用具), like forks, with other people.

      Most people will get better without seeing a doctor, but it will take them about a week to get well. If you

have a high temperature for more than a few days, call your doctor at once.

1. The underlined word "tips" means ______ in Chinese.

A. 末端

B. 建议

C. 小费

D. 垃圾

2. What should you drink to keep healthy?

    _____________________________________________________

3. How can you relax yourself if you can't sleep?

   ______________________________________________________

4. Must you see the doctor if you don't get the serious flu? 

   ______________________________________________________

5. :将文中画线的句子译成汉语。

   ______________________________________________________

查看答案
题型:阅读理解

“The only thing holding you back is yourself. Never say never”, said a rising 17-year-old singer, Justin Bieber, who was just an ordinary boy in Canada a few years ago.

After the accident of falling from the 18th floor and lying in the snow for three hours, my hands were frozen and my spinal cord (脊髓)was seriously injured. All the doctors and professors in the famous hospitals in Beijing told me that there was little chance for my hands and my body to recover (康复).

After half a year of medical treatments and recovering exercises, I could not make any more progress for over a year. What was worse , I suffered a lot from depression (绝望). On top of this, I suffered from insomnia, making every minute of the night seem to last forever. Hopelessly, mom and I came back to my hometown, which is small town in Guangdong.

At that time, I thought that I would never be able to walk again. I would never love and be loved. I would never be able to earn even a penny. I would never be able to repay the kindness I got from my parents and many nice people. Life was meaningless.

Now two years has passed. My hands are 80% recovered. I can even type faster than a healthy person! Up to now, I have worked for a law firm as an interpreter for half a year already. Although I don’t earn as much as before, I am able to pay for the food and clothes I need. What’s more, I even have extra money to buy thanksgiving presents for my parents and my boyfriend. Through my blogs (博客) , many people get to know me and like me. I can bring happiness to them. I can help those who are still suffering from depression and the pain of illnesses by chatting with them….You see, I am living a meaningful life and I am happier than ever I could have dreamed.

So, my friends, never say never. As long as you are alive, there is always hope and possibilities. It is never too late to take action to realize your dreams.     (382 words)

小题1:What’s the writer’s present job?

A.A singer.

B.A typist .

C.A professor .

D.An interpreter.小题2:What does the underlined word “insomnia” in the third paragraph mean in Chinese?

A.失眠

B.失忆

C.麻木

D.低烧小题3:All of the following words can be used to describe the writer’s present life EXCEPT___________.

A.helpful

B.meaningful

C.painful

D.hopeful小题4:According to the passage, which of the following statements about the writer is TRUE?

A.She gets a lot of help through her blogs.

B.She is in love with a young man at present.

C.She got medical treatment soon after the accident.

D.She had no job and earned little before the accident.

查看答案
微信公众账号搜索答案