问题 问答题 简答题

函数重载的主要作用是什么?函数重载时参数个数不同时,能否有缺省参数,为什么?调用不同的重载函数是在编译时决定还是在运行时决定?

答案

参考答案:函数重载主要作用是:用同一个函数名可以去调用不同参数或功能的函数,即用同一个函数实现不同的操作。

函数重载时参数个数不同时,不能有缺省参数。因为:有缺省参数时,就会发生二义性,编译出错。

调用不同的重载函数是在编译时决定的。

完形填空

More than 200 activities have been held so far during the Chinese Language Year in Russia. It has not only made Chinese culture popular in Russia, but also improved understanding and friendship between Russians and Chinese people. More and more Russians begin to enjoy Chinese food and operas, watch TV programs to learn Chinese, and travel in China.

Since the Chinese Language Year program in Russia started, so many events such as movie weeks, operas, Chinese language classes, language contests(比赛) and teaching programs have been popular in Russia.

Through the activities, Russian people have had a chance to learn more about the Chinese culture. Literature, history and its life today. For example, the first group of 500 Russian students visited the Chinese cities of Beijing, Dalian and Qingdao. There they painted both countries’ landmarks(界标), including the Tian’anmen Square, the Great Wall, the Kremlin( 克里姆林宫’), the Volga River and the Red Square. When the Russian students returned, they took part in a photo contest and a writing contest to show their love for China.

And Russians, especially young people, have become more and more interested in learning Chinese. To date, more than 130 universities in Russia are offering Chinese courses.  More than 20 middle and primary schools have also taught Chinese as their first foreign language.

小题1:____ activities were held in the Chinese Language Year in Russia.

小题2:So many events ___ in Russia since the program started.

小题3:What have Russian people learnt from the activities?

小题4:How did the Russian students show their love for China when they came back?

小题5:How many schools are having Chinese courses in Russia?

选择题