文档视界 最新最全的文档下载
当前位置:文档视界 › 高级语程序设计II考试试题(2009)B_参考答案

高级语程序设计II考试试题(2009)B_参考答案

高级语程序设计II考试试题(2009)B_参考答案
高级语程序设计II考试试题(2009)B_参考答案

四川大学期末考试试题(闭卷)参考答案

(2008-2009学年第2学期)

课程号:课程名称:高级语言程序设计II(B卷)任课教师:

适用专业年级:计算机专业08级学号:姓名:

题目要求的,请将其代码填写在题后的括号内。错选、多选或未选均无分。

1.C 2.C 3.C 4.A 5.C

6.A 7.B 8.D 9.A 10.A

二、填空题(本大题共5小题,每小题2分,共10分)不写解答过程,将正确的答案写在每小题的空格内。错填或不填均无分。

1.参考答案:基类

2.参考答案:emplate

3.参考答案:bool或布尔型

4.参考答案:对象

5.参考答案:析构函数

三、完成程序填题(本大题共3个小题,每小题3分,共9分)下面程序都留有空白,请将程序补充完整,

1.参考答案:[1]a(x)

2.参考答案:[2]operator int

3.参考答案:[3] realPart + a.realPart, imagePart + a.imagePart或this->realPart + a.realPart, this->imagePart +

a.imagePart

四、程序分析题(本大题共4小题,每小题5分,共20分)给出下面各程序的输出结果。

1.参考答案:

Class A

Class B

Class A

Class B

Class B

2.

1 6 9 1 6

3.参考答案:

1

2

3

4

3

注:试题字迹务必清晰,书写工整。本题2页,本页为第1页

教务处试题编号:

课程名称:高级语言程序设计II 任课教师:学号:姓名:

4.参考答案:

A()

B()

B::f()

~B()

~A()

五、程序改错题(本大题共3小题,每小题5分,共15分)指出下面程序中的错误的行,说明错误原因,并加以改正。

1.参考答案:第7行“void Test(){ cout << "构造函数" << endl; }”有错,构造函数没有返回值类型,应改为,应改为“Test(){ cout << "构造函数" << endl; }”。

2.参考答案:第9行,第18行与第19行有错,常对象只能调用常成员函数,可将第18行的“const MyClass oTest(18);”改为“MyClass oTest(18);”;或将第9行的“void Show()”改为“void Show() const”。

3.参考答案:第26行“A obj(10)”有错,Cbase是抽象类,不能直接生成对象,可改为“B obj(10)”。

六、编程题(本大题26分)

本题2页,本页为第2页

教务处试题编号:

【2010年-2018考研英语二历年真题与答案解析】

2010考研英语二真题及答案 Section I Use of English Directions: Read the following passage. For each numbered blank there are four choices marked A, B, C and D. Choose the best one and mark your answers on ANSWER SHEET l. (10 points) The outbreak of swine flu that was first detected in Mexico was declared a global epidemic on June 11, 2009. It is the first worldwide epidemic_____1_____ by the World Health Organization in 41 years. The heightened alert _____2_____an emergency meeting with flu experts in Geneva that convened after a sharp rise in cases in Australia, and rising_____3_____in Britain, Japan, Chile and elsewhere. But the epidemic is "_____4_____" in severity, according to Margaret Chan, the organization's director general, _____5_____ the overwhelming majority of patients experiencing only mild symptoms and a full recovery, often in the _____6_____ of any medical treatment. The outbreak came to global_____7_____in late April 2009, when Mexican authorities noticed an unusually large number of hospitalizations and deaths_____8_____healthy adults. As much of Mexico City shut down at the height of a panic, cases began to _____9_____in New York City, the southwestern United States and around the world. In the United States, new cases seemed to fade_____10_____warmer weather arrived. But in late September 2009, officials reported there was _____11_____flu activity in almost every state and that virtually all the_____12_____tested are the new swine flu, also known as (A) H1N1, not seasonal flu. In the U.S., it has_____13_____more than one million people, and caused more than 600 deaths and more than 6,000 hospitalizations. Federal health officials_____14_____Tamiflu for children from the national stockpile and began_____15_____orders from the states for the new swine flu vaccine. The new vaccine, which is different from the annual flu vaccine, is ____16_____ ahead of expectations. More than three million doses were to be made available in early October 2009, though most of those _____17_____doses were of the FluMist nasal spray type, which is not_____18_____for pregnant women, people over 50 or those with breathing difficulties, heart disease or several other _____19_____. But it was still possible to vaccinate people in other high-risk group: health care workers, people _____20_____infants and healthy young people. 1 [A] criticized [B] appointed [C]commented [D] designated 2 [A] proceeded [B] activated [C] followed [D] prompted 3 [A] digits [B] numbers [C] amounts [D] sums 4 [A] moderate [B] normal [C] unusual [D] extreme 5 [A] with [B] in [C] from [D] by 6 [A] progress [B] absence [C] presence [D] favor 7 [A] reality [B] phenomenon [C] concept [D] notice 8. [A]over [B] for [C] among [D] to 9 [A] stay up [B] crop up [C] fill up [D] cover up 10 [A] as [B] if [C] unless [D] until 11 [A] excessive [B] enormous [C] significant [D]magnificent 12 [A]categories [B] examples [C] patterns [D] samples 13 [A] imparted [B] immerse [C] injected [D] infected 14 [A] released [B] relayed [C] relieved [D] remained 15 [A] placing [B] delivering [C] taking [D] giving 16 [A] feasible [B] available [C] reliable [D] applicable 17 [A] prevalent [B] principal [C] innovative [D] initial 18 [A] presented [B] restricted [C] recommended [D] introduced 19 [A] problems [B] issues [C] agonies [D] sufferings 20 [A] involved in [B] caring for [C] concerned with [D] warding off Section Ⅱ Reading comprehension Part A Text1 The longest bull run in a century of art-market history ended on a dramatic note with a sale of 56 works by Damien Hirst, “Beautiful Inside My Head Forever”,at Sotheby’s in London on September 15th 2008. All but two pieces sold, fetching more than £70m, a record for a sale by a single artist. It was a last victory. As the auctioneer called out bids, in New York one of the oldest banks on Wall Street, Lehman Brothers, filed for bankruptcy. The world art market had already been losing momentum for a while after rising bewilderingly since 2003. At its peak in 2007 it was worth some $65 billion, reckons Clare McAndrew, founder of Arts Economics, a research

2009年考研英语二真题

2009年考研英语二真题 Section II Close(10%) Directions: For each numbered blank in the following passage ,there are four choices marked A, B, C, and D. Choose thebest one and mark your answer on ANSWER SHEET 1 with a pencil. (10 points) In1999, the price of oil hovered around $16 a barrel. By 2008, it had(21)the $100 a barrel mark. The reasons for the surge (22) from the dramatic growth of the economies of china and India to widespread (23) in oil-producing regions, including Iraq and Nigeria's delta region. Triple-digit oil prices have (24) the economic and political map of the world, (25) some old notions of power. Oil-rich nations are enjoying historic gains and opportunities, (26) major importers—including chinaand India, home to a third of the world's population-- (27) rising economic and social costs.Managing this new order is fast becoming a central (28) of global politics. Countries that need oil are clawing at each other to (29) scarce supplies, and are willing to deal with any government, (30) how unpleasant, to do it . In many poor nations with oil , the profits are being ,lost to corruption,(31) these countries of their best hope for development. And oil is fueling enormous investment funds run by foreign governments, (32) some in the west see as a new threat. Countries like Russia, Venezuela and Iran are well supplied with rising oil 33, a change reflected in newly aggressive foreign policies. But some unexpected countries are reaping benefits, (34) costs, from higher prices. Consider Germany. (35) it imports virtually all its oil, it has prospered from extensive trade with a booming Russia and the Middle East. German exports to Russia (36) 128 percent from 2001 to 2006. In the United States, as already high gas prices rose (37) higher in the spring of 2008,the issue cropped up in the presidential campaign, with Senators McCain and Obama (38) for a federal gas tax holiday during the peak summer driving months. And driving habits began to (39) ,as sales of small cars jumped and mass transport systems (40) the country reported a sharp increase in riders. 21. A. come B. gone C. crossed D. arrived 22. A. covered B. discovered C. arranged D. ranged 23. A. intensity B. infinity C. insecurity D.instability 24. A. drawn B. redrawn C. retained D. reviewed prices have (24) the economic and political map of the world, (25) some old notions of

2009年考研英语二真题试卷(后附答案详解)

2009考研英语(二)真题及答案解析 Directions:For each numbered blank in the following passage,there are four choices marked A, B, C and D. Choose the best one and mark your answer on the ANSWER SHEET with a pencil. In1999, the price of oil hovered around $16 a barrel. By 2008, it had 21 the $100 a barrel mark. The reasons for the surge 22 from the dramatic growth of the economies of china and India to widespread 23 in oil-producing regions, including Iraq and Nigeria's delta region. Triple-digit oil prices have 24 the economic and political map of the world, 25 some old notions of power. Oil-rich nations are enjoying historic gains and opportunities, 26 major importers—including china and India, home to a third of the world's population 27 rising economic and social costs. Managing this new order is fast becoming a central 28 of global politics. Countries that need oil are clawing at each other to 29 scarce supplies, and are willing to deal with any government, 30 how unpleasant, to do it . In many poor nations with oil , the profits are being ,lost to corruption, 31 these countries of their best hope for development. And oil is fueling enormous investment funds run by foreign governments, 32 some in the west see as a new threat. Countries like Russia, Venezuela and Iran are well supplied with rising oil 33 , a change reflected in newly aggressive foreign policies. But some unexpected countries are reaping benefits, 34 costs, from higher prices. Consider Germany. 35 it imports virtually all its oil, it has prospered from extensive trade with a booming Russia and the Middle East. German exports to Russia 36 128 percent from 2001 to 2006. In the United States, as already high gas prices rose 37 higher in the spring of 2008,the issue cropped up in the presidential campaign, with Senators McCain and Obama 38 for a federal gas tax holiday during the peak summer driving months. And driving habits began to 39 ,as sales of small cars jumped and mass transport systems 40 the country reported a sharp increase in riders. 21. A. come B. gone C. crossed D. arrived 22. A. covered B. discovered C. arranged D. ranged

【Selected】考研英语二2009-2017历年真题及答案解析.doc

20RR年考研英语二真题 SectionIIClose(10%) Directions:ForeachnumberedblanAinthefollowingpassage,therearefourchoicesmar AedA,B,C,andD.ChoosethebestoneandmarARouransweronANSWERSHEET1withape ncil.(10points) In1999,thepriceofoilhoveredaround$16abarrel.BR20RR,ithad(21)the$100abarrelma rA.Thereasonsforthesurge(22)fromthedramaticgrowthoftheeconomiesofchinaandI ndiatowidespread(23)inoil-producingregions,includingIraqandNigeria'sdeltaregion .Triple-digitoilpriceshave(24)theeconomicandpoliticalmapoftheworld,(25)someold notionsofpower.Oil-richnationsareenjoRinghistoricgainsandopportunities,(26)majo rimporters—includingchinaandIndia,hometoathirdoftheworld'spopulation--(27)risi ngeconomicandsocialcosts.Managingthisneworderisfastbecomingacentral(28)ofgl obalpolitics.Countriesthatneedoilareclawingateachotherto(29)scarcesupplies,andar ewillingtodealwithanRgovernment,(30)howunpleasant,todoit. InmanRpoornationswithoil,theprofitsarebeing,losttocorruption,(31)thesecountries oftheirbesthopefordevelopment.AndoilisfuelingenormousinvestmentfundsrunbRfo reigngovernments,(32)someinthewestseeasanewthreat. CountriesliAeRussia,VenezuelaandIranarewellsuppliedwithrisingoil33,achangerefle ctedinnewlRaggressiveforeignpolicies.ButsomeuneRpectedcountriesarereapingben efits,(34)costs,fromhigherprices.ConsiderGermanR.(35)itimportsvirtuallRallitsoil,ith asprosperedfromeRtensivetradewithaboomingRussiaandtheMiddleEast.GermaneR portstoRussia(36)128percentfrom20RRto20RR. IntheUnitedStates,asalreadRhighgaspricesrose(37)higherinthespringof20RR,theiss uecroppedupinthepresidentialcampaign,withSenatorsMcCainandObama(38)forafe deralgastaRholidaRduringthepeaAsummerdrivingmonths.Anddrivinghabitsbegant

2011考研英语二真题及答案解析

2011年硕士研究生入学考试2011英语二真题及参考答案 Section I Use of English Directions: Read the following text. Choose the best word(s) for each numbered black and mark A, B, C or D on ANSWER SHEET 1. (10 points) The Internet affords anonymity to its users, a blessing to privacy and freedom of speech. But that very anonymity is also behind the explosion of cyber-crime that has 1 across the Web. Can privacy be preserved 2 bringing safety and security to a world that seems increasingly 3 ? Last month, Howard Schmidt, the nation’s cyber-czar, offered the federal government a 4 to make the Web a safer place-a “voluntary trusted identity” system that would be the high-tech 5 of a physical key, a fingerprint and a photo ID card, all rolled 6 one. The system might use a smart identity card, or a digital credential 7 to a specific computer .and would authenticate users at a range of online services. The idea is to 8 a federation of private online identity systems. User could 9 which system to join, and only registered users whose identities have been authenticated could navigate those systems. The approach contrasts with one that would require an Internet driver’s license 10 by the government. Google and Microsoft are among companies that already have these“single sign-on”systems that make it possible for users to 11 just once but use many different services. 12 .the approach would create a “walled garden” n cyberspace, with safe “neighborhoods”and bright “streetlights” to establish a sense of a 13 community. Mr. Schmidt described it as a “voluntary ecosystem” in which “individuals and organizations can complete online transactions with 14 ,trusting the identities of each other and the identities of the infrastructure 15 which the transaction runs”. Still, the administration’s plan has 16 privacy rights activists. Some applaud the approach; others are concerned. It seems clear that such a scheme is an initiative push toward what would 17 be a compulsory Internet “drive’s license” mentality. The plan has also been greeted with 18 by some computer security experts, who worry that the “voluntary ecosystem” envisioned by Mr. Schmidt would still leave much of the Internet 19 .They argue that all Internet users should be 20 to register and identify themselves, in the same way that drivers must be licensed to drive on public roads. 1. A.swept B.skipped C.walked D.ridden 2. A.for B.within C.while D.though 3. A.careless https://www.docsj.com/doc/d52692805.html,wless C.pointless D.helpless 4. A.reason B.reminder https://www.docsj.com/doc/d52692805.html,promise D.proposal 5. https://www.docsj.com/doc/d52692805.html,rmation B.interference C.entertainment D.equivalent 6. A.by B.into C.from D.over 7. A.linked B.directed C.chained https://www.docsj.com/doc/d52692805.html,pared 8. A.dismiss B.discover C.create D.improve 9. A.recall B.suggest C.select D.realize 10. A.relcased B.issued C.distributed D.delivered 11. A.carry on B.linger on C.set in D.log in 12. A.In vain B.In effect C.In return D.In contrast

2009年4月自考英语二试题及答案

2009年4月全国自考英语(二)历年试题 一、Vocabulary and Structure(10 points,1 point for each item)从下列各句四个选项中选出一个最佳答案,并在答题卡上将相应的字母涂黑。 1. We ______ go out to restaurants, but mostly we eat at home. A. occasionally B. relatively C. continually D. absolutely 2. This is the first time that a woman has been _____ to the post. A. granted B. praised C. pointed D. appointed 3. If payment is not received, legal action will be our only_____ . A. aggression B. advantage C. alternative D. ambition 4. Dont trust everything______ you have read in the newspapers. A. which B. that C. as D. what 5. The conclusion from the study is not definite; it is just_____ . A. tentative B. valid C. technical D. thorough 6. She _____ everything else and concentrated on the task before her. A. set off B. set back C. set aside D. set up 7. When you _____ know Bob better, you will like him. A. go to B. got to

2010年考研英语二真题答案超详解析

2010 年全国硕士研究生入学统一考试英语(二)试题答案与解析 Section I Use of English Directions: Read the following passage. For each numbered blank there are four choices marked A, B, C and D. Choose the best one and mark your answers on ANSWER SHEET l. (10 points) The outbreak of swine flu that was first detected in Mexico was declared a global epidemic on June 11, 2009. It is the first worldwide epidemic_____1_____ by the World Health Organization in 41 years. The heightened alert _____2_____an emergency meeting with flu experts in Geneva that convened after a sharp rise in cases in Australia, and rising_____3_____in Britain, Japan, Chile and elsewhere. But the epidemic is "_____4_____" in severity, according to Margaret Chan, the organization's director general, _____5_____ the overwhelming majority of patients experiencing only mild symptoms and a full recovery, often in the _____6_____ of any medical treatment. The outbreak came to global_____7_____in late April 2009, when Mexican authorities noticed an unusually large number of hospitalizations and deaths_____8_____healthy adults. As much of Mexico City shut down at the height of a panic, cases began to _____9_____in New York City, the southwestern United States and around the world. In the United States, new cases seemed to fade_____10_____warmer weather arrived. But in late September 2009, officials reported there was _____11_____flu activity in almost every state and that virtually all the_____12_____tested are the new swine flu, also known as (A) H1N1, not seasonal flu. In the U.S., it has_____13_____more than one million people, and caused more than 600 deaths and more than 6,000 hospitalizations. Federal health officials_____14_____Tamiflu for children from the national stockpile and began_____15_____orders from the states for the new swine flu vaccine. The new vaccine, which is different from the annual flu vaccine, is ____16_____ ahead of expectations. More than three million doses were to be made available in early October 2009, though most of those _____17_____doses were of the FluMist nasal spray type, which is not_____18_____for pregnant women, people over 50 or those with breathing difficulties, heart disease or several other

考研英语二真题解析曲巍巍

2010(2) (1)“Su s tainability” has become a popular word these days, but to Ted Ning, the concept will always have personal meaning. (2)Having endured a painful period of unsustainability in his own life made it clear to him that sustainability-oriented values must be expressed through everyday action and choice. (3)Ning recalls spending a confusing year in the late 1990s selling insurance. (4)He’d been th rough the dot-com boom and burst and, desperate for a job, signed on with a Boulder agency. (5)It didn’t go well. (6)“It was a really b ad move because that’s not my passion,” says Ning, whose dilemma about the job translated, predictably, into a lack of sales. (7)“I was miserable. (8)I had so much anxiety that I would wake up in the middle of the night and stare at the ceiling. (9)I had no money and needed the job. (10)Everyone said, ‘Just wait, you’ll turn the corner, give it some time.’” 【篇章导读】本文节选自杂志《体验生活》(Experience Life)2009年12月刊上的一文,描述了Ning如何辗转挣扎、前途未卜的处境。sustainability(“承受力”)一词对于考生而言比较陌生,准确理解其意义的关键在于结合文中出现的关键词汇,如endured a painful period、through the dot-com boom and burst、turn the corner、give it some time等进行推断。本短文共三段。第一段指出Ning对于“承受力”的个人体会及其缘由,第二段讲述Ning痛苦经历的背景,第三段直接引用Ning的话,具体讲述Ning所经历的那段无法承受的痛苦生活。 【试题解析】 1. “Sus tainability” has become a popular word these days, but to Ted Ning, the concept will always have personal meaning. 【结构分析】 1)这是一个由两个并列句构成的简单句。 2)第一个并列句“sus tainability” has become a popular word these days是主系表结构;第二个并列句是but to Ted Ning, the concept will always have personal meaning。 【词汇解析】 1)sustainability n. ①承受力;②可持续性 e.g. a) They expressed their concerns about environmental sustainability. 他们表达了对环境可持续发展的关注。 b) We should take care of the spiritual sustainability of laid-off workers. 我们应该关注下岗职工的心理承受力。 〖拓展〗sustain v. ①承受住,支撑;②持续 sustainable adj. ①可支撑的;②可持续的 unsustainable adj. 无法承受的

2010考研英语二真题以及答案

2010年全国硕士研究生入学统一考试英语(二)试题 Section I Use of English Directions: Read the following text. Choose the best word(s) for each numbered blank and mark A, B, C or D on ANSWER SHEET 1. (10 points) The outbreak of swine flu that was first detected in Mexico was declared a global epidemic on June 11, 2009. It is the first worldwide epidemic __1__ by the World Health Organization in 41 years. The heightened alert __2__ an emergency meeting with flu experts in Geneva that assembled after a sharp rise in cases in Australia, and rising __3__ in Britain, Japan, Chile and elsewhere. But the epidemic is "__4__" in severity, according to Margaret Chan, the organization's director general, __5__ the overwhelming majority of patients experiencing only mild symptoms and a full recovery, often in the __6__ of any medical treatment. The outbreak came to global __7__ in late April 2009, when Mexican authorities noted an unusually large number of hospitalizations and deaths __8__ healthy adults. As much of Mexico City shut down at the height of a panic, cases began to __9__ in New York City, the southwestern United States and around the world. In the United States, new cases seemed to fade__10__ warmer weather arrived. But in late September 2009, officials reported there was __11__ flu activity in almost every state and that virtually all the __12__ tested are the new swine flu, also known as (A) H1N1, not seasonal flu. In the U.S., it has __13__ more than one million people, and caused more than 600 deaths and more than 6,000 hospitalizations. Federal health officials __14__ Tamiflu for children from the national stockpile and began __15__ orders from the states for the new swine flu vaccine. The new vaccine, which is different from the annual flu vaccine, is __16__ ahead of expectations. More than three million doses were to be made available in early October, 2009, though most of those __17__ doses were of the FluMist nasal spray type, which is not __18__ for pregnant women, people over 50 or those with breathing difficulties, heart disease or several other __19__. But it was still possible to vaccinate people in other high-risk groups: health care workers, people __20__ infants and healthy young people. 1. [A] criticized [B] appointed [C]commented [D] designated 2. [A] proceeded [B] activated [C] followed [D] prompted 3. [A] digits [B] numbers [C] amounts [D] sums 4. [A] moderate [B] normal [C] unusual [D] extreme 5. [A] with [B] in [C] from [D] by 6. [A] progress [B]absence [C] presence [D] favor 7. [A] reality [B] phenomenon [C] concept [D] notice 8. [A] over [B] for [C] among [D] to 9. [A] stay up [B] crop up [C] fill up [D] cover up

相关文档
相关文档 最新文档