问题 单项选择题

如果派生类以protected方式继承基类,则原基类的protected成员和public成员在派生类中的访问属性分别是

A.public和public

B.public和protected

C.protected和public

D.protected和protected

答案

参考答案:D

解析: 派生类以protected方式派生基类,在基类中的公有和保护成员,在派生类中全部被继承为保护成员。

完形填空

阅读理解

     I had a summer camp with my classmates last year.

     Early in the morning, we gathered at the bus station. After saying goodbye to our parents, .we got on the buses. It

took us more than two hours to arrive at the camp ground.

     We got off the buses cheerfully. Laughing and shouting, we jumped and ran all over the place. It was the first time

for us to be away from the parents. Some of us started to feel homesick. However, when the night party and dances

began, the homesickness was gone.

     The next day, everybody rushed to the boating class, hoping to be at the head of the others. At first, my friends and

I worked hard, but the boat wouldn't listen to us and kept going round and round. Then the teacher taught us how to

work together. After many tries, we did much better.

     Swimming class was my favourite. It was about the hottest time of a day and the best time to stay in the cool water.

The swimming teacher was a funny man, and during the class he often made us laugh happily.

     During the week I learned a lot of new things and made many new friends. I also learned how to take care of myself.

1. They got to the camp ground _____.

A. on foot

B. by bike

C. by bus

D. by plane

2. The camp ground was _____ from their homes.

A. quite near

B. not far

C. very long

D. quite far

3. Why swimming class was the writer's favorite?

A. Because it was good to stay in the cool water when the weather was hot.

B. Because the writer felt quite relaxed during the class.

C. Because the swimming teacher was interesting.

D. Because of all the above.

4. Which statement is NOT true?

A. The children were happy to be away from Dad and Mum.

B. Their homesickness lasted for long.

C. It was teamwork to boat.

D. They camped for a week.

5. Which is the best title for the passage?

A. I Learnt a Lot.

B. Boating and Swimming.

C. On the Camp ground.

D. My First Summer Camp.

问答题