问题 单项选择题

若变量已正确定义并赋值,以下符合C++语言语法的表达式是( )。

A) a=b+l
B) a=b=c+2
C) int 18.5%3
D) a=a+7=c+b

答案

参考答案:B

解析: 本题考查C++语言的正确赋值方法。a=b=c+2实际上相当于a=(b=c+2),进而可分解为两个表达式:b=c+2和a=b。选项A中包含一个不合法的运算符”:=”;选项C应改为(int)18.5%3,选项D可理解为两个表达式ca+7:c+b和a=a+7,其中第一个是错的,因为C++语言规定赋值号的左边只能是单个变量,不能是表达式戊常量等。

完形填空

任务型阅读,阅读短文,完成各题(10分)

Have you ever heard of a famous charity called Operation Smile? We hope we can help you understand how we are trying to help children all over the world.

Operation Smile was started by a doctor and his wife. In 1982, together with some volunteers, they went to Philippines to help children who had holes in their lips or inside their mouths. (1)对他们来说,吃喝很困难。These volunteers worked very hard. But they worried that they could not go on with the work because they were lack(缺乏) of money.Then they decided to start a charity (2)_________they could help these needy children. They called it Operation Smile.

Operation Smile works in more than twenty developing counties and has cured over 10,000 children who have problem with their mouths. Operation Smile has won many prizes for its work and in 1999 they even started a special event called “The World Journey of Hope”. 5,000 children in 18 countries are cured during the event.

On the other hand, Operation Smile trains health care professionals in developing countries so that they can continue to help children when Operation Smile has left. As to the children with much more serious problems, they will send them to America for further treatment.

So show your kindness and generosity(慷慨) to the needy children now. You can send your donation to Operation Smile at local bank. (3) Many thanks from the children who can smile now will come to you.

小题1:将(1)句译成英文:_______________________________________________

小题2:将(2)句的空白处填入适当的词语使句意完整,上下文通顺 _____________

小题3:将(3)句翻译成中文:_____________________________________________

小题4:找出文中与下列句子意思相近的句子: 

They worried that they could not continue to work because they have no money.

________________________________________________________________

小题5:What is the best title of the passage?

________________________________________________________________

单项选择题