问题 单项选择题

下列关于成员函数特征的描述中,错误的是( )。

A.成员函数一定是内联函数

B.成员函数可以重载

C.成员函数可以设置参数的默认值

D.成员函数可以是静态的

答案

参考答案:A

解析: 因为成员函数可以在类体内定义,也可以在类体外定义,所以成员函数不一定都是内联函数;成员函数可以重载,可以设置参数的默认值,成员函数可以是静态的。

阅读理解

阅读理解。

     There are many kinds of ants (蚂蚁) in America. One kind is very strong. People are afraid of it, and

 animals are afraid of it, too.

     These ants move in large groups. They eat all the animals on their way. They can kill and eat  elephants

  and they can eat wood (木头) houses . Sometimes the ants can kill people. When the ants come near,

 people leave their homes. But people are sometimes glad after the ants pass through , because they can

 see no insects (昆虫) or snakes (蛇).

1. Some ants in America can be very _____.

    A. heavy          

    B. strong        

    C. light      

    D. thin

2.  People  and animals fear (害怕) _____.

    A. one kind of ants      

    B. all kinds of ants

    C. small ants          

    D. big ants

3. People get away from the ants because _____.

    A. they can eat and kill elephants    

    B. they can also eat wood houses

    C. they travel in large groups        

    D. they can even kill people

4. Why do the insects and snakes disappear (消失) after the ants pass through?

    A. They hide themselves under the ground.

    B. They move to other places before the ants come.

    C. The ants have killed and eaten the insects and snakes.

    D. People have killed the insects and snakes.

5. Which is the best title (题目) for the story ?

    A. Ants      

    B. American    

    C.A Big Ant      

    D.A Strong Ant

填空题