问题 单项选择题

以下关于程序中函数的定义、调用和声明的叙述中,正确的是()。

A.函数的定义必须放在该函数的调用之前

B.函数的声明必须放在该函数的调用之前

C.函数的定义必须放在该函数的声明之前

D.函数的声明必须放在该函数的定义之前

答案

参考答案:B

解析:在程序中,函数定义是指对函数的完整定义,包括函数首部和函数体,函数调用是指对所定义函数的使用,一个函数只有被调用才能得到执行。函数声明是指函数的定义在后面,而前面需要对它进行调用,这样就需要预先进行声明,以便编译程序检查调用的合法性。一般来说,函数的声明只是函数首部加上分号即可。函数声明不是必需的.若函数调用在函数定义之后,则无须声明。

填空题

在自然界中,碳及其化合物之间进行着永不停息的转化,这些转化是非常重要的。

(1)在空气中久置的石灰水往往会失效,不能再用来检验二氧化碳气体。石灰水在空气中失效的原因可以用化学方程式表示为___________;石灰水失效后的试剂瓶内壁附着有白色物质,要清除这些物质可用的试剂是____________________。

(2)曰前大多数机动车都是采用化石燃料(燃油或燃气),使用化石燃料的机动车尾气中含有CO、NO等污染物。汽车排气管道中安装催化转化器,可使CO、NO等有害气体转化为无毒物质,从而减少尾气中有害物质的排放。已知反应:

①N2(g)+O2(g)=2NO(g) △H=+180.5kJ/mol

②2C(s)+O2(g)=2CO(g) △H=-221.0kJ/mol

③C(s)+O2(g)=CO2(g) △H=-393.5kJ/mol

则反应④2NO(g)+2CO(g)N2(g)+2CO2(g)的△H=__________kJ/mol。一定条件下,在一容积为1L的密闭恒容容器中通入2molNO和2molCO,在一定条件下发生上述反应④,下列不能说明反应达到平衡状态的是____________。

a.NO和CO的体积比保持不变

b.混合气体的平均摩尔质量保持不变

c.体系内压强保持不变

d.每生成1molN2的同时消耗2molCO2

测得上述反应达到平衡时,CO2的物质的量是CO的2倍,则该温度下的化学平衡常数K=________。

(3)大气中过多的二氧化碳会导致地球温室效应,给地球带来灾难,二氧化碳可以溶解在碱液中。现将1.12L(标准状况)CO2通入体积为100mL浓度为1mol/L的NaOH溶液中,该反应的离子方程式为_________________,所得溶液中离子浓度由大到小的顺序为________________________________。

阅读理解

Most people want to be successful, but never stop to think what it will really take to get there in their chosen field. If it means going back to college for 2 years of night school, could you do it ? If it means reading a book a week for about 6 months in order to really master a new skill ? If you aren’t prepared to do any of those things because they are outside of your comfort zone, then you can forget being succesful. I guarantee you will never reach your goals in life, unless your goals are to be ordinary.

The biggest killer by far is the dreaded “ comfort zone ” where most people live in their entire life. And the funny thing is that people just can’t wrap their heads around the fact that people who have reached some success get tons of time to just relax, but only because they’ve earned it ! If you haven’t built a successful business, or in some way built a career that allow you so much freee time, then you are stuck in the grinding world of nine-to-five jobs everyone else. So how comfortable is that ?

So what can you do about it ? Well, find a way to make something happen in your life--- build a business around your favourite hobby, write a book and publish it, or take a course in stock trading and become an expert at that, working on making enough money to retire. If you don’t take massive action that puts your way of your comfort zone, you will never be successful at much of anything. I promise--- and I don’t make many promises !

Finding real happiness in life can be a mystery for many. That’s why I wrote The Road to Happiness for those who want real success and happiness in life, including spirituality and all the gifts life has to offer.

Don’t wander aimlessly through life. Get focused on your goals, start helping others in need, and live life to the fullest ! Life is too short to be anything but happy. Visit my website and find what you’ve been missing. Sign up for my newsletter and get seven free ebooks, too ! Read hundreds of articles while you’re there in the article section, which is updated daily.

小题1:This text must be taken from __________.

A.a radio program

B.a website

C.a newspaper

D.a TV program小题2: If you want to be successful in life, what should you do first ?

A.We should think what it really takes to be successful in our chosen field.

B.We should focus our full attention on the work in our chosen field.

C.We should live out of the “ comfort zone ” all through our life.

D.We should work together with other people to reach our goals in time.小题3: According to this text, why do some people have so much free time to relax ?

A.Because they have enough money to do so.

B.Because they don’t want to be successful.

C.Because they have already earned it through hard work.

D.Because they only work nine to five every day.小题4: The writer thinks it necessary for you to __________ if you want to be successful.

A.do a lot of actual wotk

B.write a book and publish it

C.take a course in stock trading

D.make enough money to retire