2012-2013-1试卷A及答案
- 格式:docx
- 大小:125.96 KB
- 文档页数:9
2012年高考英语全国卷一卷2012年高考英语全国卷二卷2013年高考英语全国大纲卷2012年普通高等学校招生全国统一考试英语本试卷分第Ⅰ卷(选择题)和第Ⅱ卷(非选择题)两部分。
第Ⅰ卷1至14页。
第Ⅱ卷15至16页。
考试结束后,将本试卷和答题卡一并交回。
第Ⅰ卷注意事项:1.答题前,考生在答题卡上务必用直径0.5毫米黑色墨水签字笔将目己的姓名、准考证号填写清楚,并贴好条形码。
请认真核准条形码上的准考证号、姓名和科目。
2.短小题选出答案后,用2B铅笔把答题卡上对应题目的答案标号涂黑,如需改动,用橡皮擦干净后,再选涂其他答案标号,在试题卷上作答无效。
第一部分听力(共两节,满分30分)做题时,先将答案标在试卷上。
录音内容结束后,你将有两分钟的时间将试卷上的答案转涂到答题卡上。
第一节(共5小题:每小题1.5分,满分7.5分)听下面5段对话。
每段对话后有一个小脱.从题中所给的A.B.C三个选项中选出最佳选项,并标在试卷的相应位置。
听完每段对话后,你都有10秒钟的时间来回答有关小题和阅读下一小题。
每段对话仅读一遍。
例:How much is the shirt?A.£19.15.B.£9.15.C.£9.18.答案是B。
1.Where does this conversation probably take place?A.In a bookstore.B.In a classroom.C.In a library.2.At what time will the film begin?A.7:20B.7:15C.7:003.What are the two speakers mainly talking about?A.Their friend Jane.B.A weekend trip.C.A radio programme.4.What will the woman probably do?A.Catch a train.B.See the man off.C.Go shopping.5.Why did the woman apologize?A.She made a late delivery.B.She went to the wrong place.C.She couldn't take the cake back.第二节(共15小题;每小题1.5分,满分22.5分)听下面5段对话。
听力部分一、1~5:CBCAB 二、6~10:ABCCB三、11.classroom 12. dining hall 13. gym 14. playground 15. teachers’ office四、16~20:F F T F T笔试部分一、1~5:BBCDD 6~10:CBADA 11~15: CBACB二、1~5:DAEBC 三、1~5:CBADB 6~10:ADBCB四、1~5:FFFFTF 6~10:ACADB 11~15:CCADB五、1. rest 2. borrow 3. catch 4. interesting 5. Thursday 6. also 7. night 8. behind 9. riding 10. swimming 11. begins 12. American 13. drawing 14. boating watches六、(A)1. is seldom late for 2. returns, on time 3. is looking for 4. is talking about, with 5. How long, keep(B)1. do, like best 2. to have 3. also likes 4. How does, go 5. How often do七、My name is Mary. I’m a student in Renhe Middle School. There are two classr oom buildings and two big playgrounds in my school. Our classroom is very big. We have twenty-one boys and twenty girls in our class. I have many subjects, such as Chinese, math, English, music, art and so on. I like English very much, because it’s very ea sy and interesting. I often do sports with my classmates after class. My favorite sport is football. I think it’s good for my health.(请评卷教师评卷前校对一次,如有错漏或多种答案,请自行更正。
高中英语真题:2012—2013学年高一英语上学期第一次素质检测试题第I卷(三部分,共115分)第一部分:听力(共两节,满分30分)第一节(共5小题,每小题1.5分,满分7.5分)听下面5段对话。
每段对话后有一个小题, 从题中所给的A、B、C三个选项中选出最佳选项。
每段对话仅读一遍。
1. What does the woman mean?A. The man is wrong.B. Tim isn’t her brother.C. Tim is new to the work.2. What are the two speakers probably going to do?A. Have a nice evening together.B. Say goodbye to each other.C. Spend the summer vacation together.3. When does the conversation most probably take place?A. In the morning.B. In the evening.C. At midnight.4. How long will the woman travel?C. For two months.5. What does the woman mean?A. She doesn’t need a job.B. She hasn’t got a job yet.C. She has got a good job.第二节(共15小题;每小题1.5分,满分22.5分)请听第6段材料,回答6至8题。
6. When did the conversation most probably take place?A. Tuesday.B. Wednesday.C. Thursday.7. Why was the woman late that morning?A. Because the bus service was bad.B. Because it was raining.C. Because her watch went wrong.8. What happened to the woman on Tuesday morning?A. She was ill and the doctor was terrible.B. She was kept waiting for a long time at the doctor’sC. She failed to get a taxi.请听第7段材料,回答第9至11题。
华南理工大学继续教育学院2012-2013年第一学期期末考试(开卷)《人力资源管理》 2012春季 网成班工商专科 试卷(A 卷)(.本试卷共有 五 大题,满分 100 分,考试时间 120 分钟)一、单选题(每题1分,20题,共20分) 1 在人力资源管理理论中,提出X 理论的代表人物是( ) A 法约尔 B 泰罗 C 韦伯 D 梅奥 2 具有代表性的激励理论共有四种,其中基于“需要层次”的代表性理论是( ) A 赫茨伯格的“双因素理论” B 亚当斯的“公平理论” C 马斯洛的“需求层次理论” D 维克多·弗鲁姆的“期望理论” 3 下列招聘方法中,属于内部招聘的是( ) A 广告招聘 B 校园招聘 C 员工推荐 D 工作调换 4 绩效标准要符合SMART 原则,其中S 代表的意思是( ) A 可达成的 B 相关的 C 具体的 D 可度量的 5 根据员工在考评周期以外的表现对考评周期内的表现做出评价的是( ) A 溢出效应B 近期误差C 首因效应D 对比效应 6 将绩效考评的指标和标准制作成量表,依次对员工的业绩进行考评的方法是( ) A 配对比较法 B 强制分布法 C 评级量表法 D 直接指标法 7 下列不属于直接性经济薪酬的是( ) A 奖金 B 工资 C 红利 D 养老保险 8 下列属于公司福利的是( ) A 法定休假 B 养老保险 C 交通车 D 生育保险 9 劳动关系的主体由两个方面构成,分别是( ) A 用人单位和政府 B 用人单位和劳动者 C 劳动者与政府 D 劳动者和管理者 10 固定期限劳动合同的具体期限由双方约定,一般为( ) A 1-3年 B 2-5年 C 5-10年 D 10年以上 11 下列不属于劳动争议处理方式的是( ) A 调解 B 仲裁 C 诉讼 D 协调 12 心理契约理论是由美国著名管理学家提出的,他是( )A 舒尔茨B 马斯洛C 施恩 D麦格雷戈13 用来预测等时间间隔点上(一般为一年)各类人员分布状况的动态预测技术是指()A 技能清单B 水池模型C 马尔可夫模型D 人员替换14 当预测的人力资源供给大于需求时,可以采取的措施有()A 延长工作时间B 调宽工作范围C 业务外包D 鼓励提前退休15 属于内部招聘优点的是()A 提高员工对组织的忠诚度B 给组织带来不同的价值观及新观点、新思路和新方法C 是一种有效的信息交流方式D 可以节省大量的培养费用,并促进合理的、社会化的人才流动16 “在以往的工作经历中,你认为最成功的地方是什么?”,这是面试技巧中的()A 递进提问B 简单提问C 比较式提问D 举例提问17 美国学者卡兹认为,组织寿命的长短与组织的信息沟通情况有关,与获得成果的情况也有关。
2012-2013学年度第一学期期末考试英语试卷(满分120分,时间100分钟)第一部分听力(25分)Ⅰ.听句子,选择正确图片。
每个句子读一遍。
(5分)1._____2._____3._____4._____5._____Ⅱ.听句子,选择正确答语。
每个句子读一遍。
(5分)( )6.A. Alexander Graham Bell. B. In 1876. C. In Scotland.( )7.A. You are wrong. B. It’s delicious. C. Me, too.( )8.A. That’s a good idea. B. Not bad. C. I’ll do it for you.( )9.A. It’s very interesting.B. France is quite an expensive place.C. I’d love to visit Sydney.( )10.A.OK! I’ll go, too. B.I agree. C. What’s it for?Ⅲ.听对话,填空。
对话读三遍。
(5分)M: Hello, mother! We learned about light in physics classes. It travels very fast.W: Do you know how fast it travels?M: Oh, it travels at a 11 of 300,000 kilometers a second. The sun is about12 kilometers away from the earth. Light from the sun reaches us in less than9 minutes.W: Is the sun farther than the other stars?M: No, it isn’t. Light from the 13 star except the sun needs about 4 years to reach the earth.W: Wow! How long does it take for light to reach the 14 star?M: Mmm ... It takes hundreds of years for light from the farthest star to reach the earth.W: Oh, how 15 you are! I think you can be an astronomer(天文学家) when you grow up.M: Thank you, mother! I will try my best.11._____ 12._____ 13._____ 14._____ 15._____Ⅳ.听短文,选择正确答案。
华北水利水电学院2012 -2013 学年第一学期考试试卷标准答案学院《基础英语》课程试题(□A卷□B卷) ) 共页第页pletion1 attaches great importance to2. survived3 have much in common4 judging by5 get to his feet6 ranging in price7. made a name for himself8. worth9. its effects will be felt10. be well on the way2. Cloze.11-15 D A C C A16-20 D B D B B21-25 C A A C B26-30 C A D B D3. Reading Comprehension.31-35 A B C B D36-40 A C B D A41-45 B D D C B4. Rewriting the sentences1) Being very short of money, I applied for the job.2) It so happened that both of them had been absent from England a year exactly.3) It is such a good play that it is worth seeing twice.4) Not until in the evening did I get in the car.5) It is expected that the price of fuel will go down.6)Threat Jenny as if she was/were one of your sister.7) This class consisted of twenty-four boys, ranging in age from seven to thirteen.8) Most people hold the belief that Shakespeare himself wrote all his plays.9) I was likely to arrest the driver’s attention.10) Suppose you fall ill on the way, a dose of this medicine will put you right.5. Paraphrase1. The fact that I would have to work under a woman in future made me feel totally humiliated.2. As far as the British are concerned, the Chunnel has changed the geographical pattern which long separated Britain from Continental Europe.3. We are so uncertain about his activates that we might as well say that he was born when the Romans occupied Britain a long time ago.4. Theoretically it is possible, now that atomic energy has been used to drive submarines andan atomic engine has been made.5. usually/more often than not, town gardens are small; the same is the case with the Long’s garden,6. Translation1. They all think that he stands little chance to success.2. No one who has heard about her misfortune will not feel deep sympathy for her.3. We would rather die than live in disgrace.4. Nothing you do can prevent me from pursuing my ideal.5. The helicopters will be used to send the rescue party to the scene of disaster in case of an emergency.6. She is a well-liked physics teacher with a lot of teaching experience.7. Our different views of life made no difference at all to our friendship.8. Most of the representatives at the meeting firmly opposed the plan of constructing an amusement park in the urban area of the city.9. As is known to all, the Great Wall is one of the Seven Wonders of the World, which deserves our careful protection.10. According to the new rule, a football team may consist of 24 players. In other words, 24 football players may make up a football team.。
唐山市2012-2013学年度高三年级第一学期期末考试英语试题参考答案卷A1. A2. B3. B4. C5. A6. A7. C8. B9. A10. C 11. C 12. A13. C 14. B 15. A16. C 17.B 18.A19. C 20. B 21. D 22. A23. A24. C 25.B 26. D 27. D28. B 29. C 30. B 31. D 32. A33. C 34. C 35. B 36. B37. B 38. D 39. A40. B 41. C 42. A43. C 44. D 45.D46. A47. B 48. A49. C 50. B 51. C 52. B 53. D 54.A55. C 56. D 57. A58. C 59. B 60. A61. D 62. B 63.A64. C 65. D 66. A67. C 68. B 69. B 70.D 71. F 72. G73. B 74. E 75. D卷B1. C2. A3. A4. B5. C6. B7. C8. A9. B10. C 11. A12. B 13. C 14. A15. B 16. C 17.A18.B19. A20. C 21. A22. B 23. C 24. D 25.B 26. C 27. D28. B 29. A30. A31. D 32. C 33. A34. B 35. D 36. A37. B 38. D 39. C 40. A41. B 42. C 43. A44. B 45.D46. D 47.C 48. B 49. B 50. C 51. A52. C 53. D 54.C55. D 56. C 57. B 58. D 59. A60. C 61. A 62. C 63.D64. B 65. D 66. C 67. C 68. B 69. B 70.D 71. F 72. G73. B 74. E 75. D短文改错Several days ago, my classmates and I visited to the Cincinnati School for the Blindand Deaf. We had ∧party with some of the student there and had a wonderful time. I met aa studentsgirl at the party. She couldn’t speak or hear, but we “talked” by writ ing on each other hands.other’s When saying goodbye, she writes on my hand, “Please come here as often as possible.”wroteMany people are concerning about disabled people and give her money. How ever, concerned themI think which we should do is to communicate with them rather than give money. If you wantwhatto help disabled people, making friends with them and visit them regularly. Nothing is muchmake more important than friendship.One possible versionDear Joe,Thanks for your mail. I’m glad to know you are interested in the 2013 Florida Winter Camp. It will be held from January 27 to February 13, during which time you will get wonderful experiences. Y ou will have chances to improve your spoken English in the courses provided. Also, activities are arranged for you to spend weekends together with your host family, so you can learn American English in authentic situations. Besides, a trip to the local Disneyland will certainly add to the fun of the camp. Join the camp and you will have a better knowledge of American culture and life. Y ou are sure to benefit from it.Y ours trulyLi Hua听力录音稿第一节M: Would you like to go to a movie or try that new Chinese restaurant?W: Thanks for asking but I’d rather stay home. I’m too tired today.第二节M: When did your toothache start?W: It’s been this way for a few days.M: Let me have a look at it.第三节M: Can I offer you a ride to work?W: Thank you very much. I really appreciate it.第四节M: How much will the cost come to?W: The total cost will be five hundred and thirty dollars.M: OK. Here are six hundred dollars.第五节M: That dress looks great on you.W: No, I think I look too fat. What’s worse, the pattern makes me look like a lion. Any others for about the same price?第六节W: Have you moved into the new house?M: Y es, we moved in last week.W: Is your wife pleased with it?M: Y es, she is. The new kitchen is beautiful. She likes to cook in it. And she likes to play with the kids in the garden.W: What do you want to do now?M: I want to be back at the hotel.W: But it’s only 3 o’clock.M: I’m worn out. I want to rest for a while. We’ve done a lot of sightseeing.W: We still have plenty of time to do shopping. The stores won’t close until six o’clock. And the play at the theater starts at seven.M: Then where shall we have our supper? Outside the stores? And in that case, shall we have enough time to get to the theater by subway?W: No, but we can take a taxi. It’s more expensive, but it’s a lot easier.M: Will our money see us through our tour if we spend money like that?W: Oh, sorry. I didn’t think of that.第八节M: Customer Service, Anthony Grant speaking. How can I help you?W: I can’t believe this is happening! I called and ordered a 32-inch bag last Friday. But today I found that you sent a 24-inch one. I was planning to use that bag during our vacation in Mexico, but it doesn’t seem possible any more because we’re taking off on Saturday. It’s only three days away. What am I supposed to do?M: I’m really sorry, madam. I’ll check right away. Would you please tell me your order number?W: It’s CE29.M: Er, just a moment. I do apologize, madam. There does seem to be a mistake. I’ll have the correct size bag sent to you by over-night mail right away. It should arrive by Friday. It will be in time for your Saturday trip. Again I apologize for any inconvenience caused by our mistake. I promise it won’t happen again.W: OK. Well, thank you.M: Thank you, madam, for choosing Linch Mail Order Company. I hope you have a wonderful vacation.第九节M: What time does Mother’s plane arrive, honey?W: I’m not sure, but I thought it would arrive at 2:30. But it has been delayed for 15 minutes.Does our brother Dick want to go?M: No. He has gone to Paris.W: On business or for further study?M: Neither. He is just taking his usual holiday.W: And how about Uncle Ben and Aunt Lucy?M: She rang me yesterday afternoon and said that our uncle was very busy, but she would go to the airport with us.W: OK. When shall we start?M: How about at 1 o’clock? We have to start a little earlier.Before leaving, we have to go around the gas station to fill the car up first.Well, ladies and gentlemen. That was our last item, and all I want to do is to thank our performers for the pleasure they’ve given us this evening. And of course, I must express our thanks to those who have worked behind the scenes, and especially our producers. But most of all I want to say “thank you”to all of you for coming here this evening and supporting this event, especially in such weather. I think perhaps I should take this chance to make an apology to those sitting in the back rows. We have made some repairs to the roof, but unfortunately the rain tonight is unexpectedly heavy. And we’re thankful to you for your understanding and cheerful good humor. We had hoped that the repairs would be enough. But we were recently told that the whole roof would have to be replaced. We were upset to learn the news because it’s only five years since we replaced the roof of the church itself. And so we shall be having another concert soon, I hope.。
2012-2013学年度第一学期期末复习题参考答案七年级英语一、1~5:BACAA 二:6~10:CCABB 三:11~15:BACBA 四:16~20:CACAC五:21~25:ABBCB :26~30:CACCB :31~35:CACAB六:36~40:GDFEA七:41~45:CABAC :46~50:DCBDA八、51~55:ACDBB 56~60:CBABC 61~65:T F F T F九、66. zoo 67. sir 68. buy 69. rabbit / hare 70. just 71. picnic 72. favorite73. parents 74. have 75. sing 76. eating 77. feet 78. song 79. mice 80. has十、81. get up 82. Are, free 83. What’s wrong 84. look the same, different 85. am afraid, to help十一、Lily is an English girl. She likes pink very much. Jiaozi is her favorite food. Her favorite animals are pandas. In the morning, she gets up at 6:30 and in the evening she often goes to bed at 9:30. Jack is from Canada. His favorite color is blue. He says hamburgers are his favorite food. He likes lions very much. He often gets up at 6:40 in the morning and goes to bed at 9:50 in the evening. Lily and Jack are both in Class One. They are good friends.听力材料一.听句子,选择正确图片。
黔东南民族职业技术学院 2012~2013 学年度第一学期《旅游概论》试 卷 A (12 中职旅游管理专业)1、本试卷共 2 页,用钢笔和圆珠笔作答1、旅游六大要素是吃、 、行、游、购、娱。
2、世界旅游组织是英文缩写是 。
3、旅游资源分为 和 两大类。
4、文化是人类所创造的 。
5、旅游的特点有广泛性、 参与性、季节性 。
6、按旅游区域划分可分为 和 两大类。
7、世界上最早的旅行者是 人,其旅行的目的在于 。
8、世界上第一家旅行社是由 创办的。
9、近代旅游的兴起与旅游业的诞生,是人类旅游史上的一个新的 它标志着人类的旅游活动已初见“ ”时代的曙光。
10、任何旅游行为都不得破坏生态,而必须以 为原则。
11、旅游饭店出售的产品就是服务, 是旅游饭店成功的基础。
12、从完整的旅游活动来看,无论是公共交通还是专业性的交通,都承担着旅游者的 。
13、旅游业是旅游的 。
14、 是旅游市场形成的首要条件。
15、推进旅游产业转型升级要以转变 为核心,以优化 为基础,以推进集约型发展为重点。
二、单项选择题:(在每小题列出的四个选项中只有一个选项是符合题目要求的,请将正确选项前的字母填在题中的括号内。
每空 2 分,共 20 分)1、旅游娱乐业是国家和地区旅游业发展水平的( )。
A 、起点 B 、标志 C 、基础 D 、象征2、旅游景区的景观或景物要含有一定的文化知识内容指的是( )。
A 、科学价值 B 、观赏价值 C 、文化价值 D 、安全价值3、旅游资源对旅游者具有( )。
A 、吸引力B 、扩张力C 、综合力D 、挑战力4、大型旅游饭店的客房数在( )以上。
A 、300 B 、600 C 、500 D 、400 5、旅行社在旅游者和旅游产品之间起着( )。
A 、中介作用 B 、缓和作用 C 、饱和作用 D 、激励作用6、( )是实现旅游活动的必要手段,是旅游业发展的命脉。
A 、旅行社 B 、景区 C 、交通 D 、饭店7、绿色营销是在( )的驱动下产生的。
诚信应考,考试作弊将带来严重后果!华南理工大学期末考试《C++程序设计基础》试卷A注意事项:1. 考前请将试卷和答题纸密封线内各项填写清楚;2. 所有答案写在答题纸上,否则无效;3.试卷和答题纸同时提交;4.考试形式:闭卷;5. 本试卷共四大题,满分100分,考试时间120分钟。
一、单项选择题(每小题2分,共30 分)1. 下列不合法的变量名是(C)。
(A) int_a (B) abc (C) 2c (D) _sum2. 表达式4%3+4*5+3/2的结果为(D)。
(A) 21.5 (B) 22.5 (C) 21 (D) 223. 设变量定义int x =3, y, z; 执行语句y = z = x++; y = x = = z; 后变量y的值是(A)(A) 0(B) 1 (C) 5 (D) 64. 已知int i=0,x=2; 下面while语句执行时循环次数为(C )。
while(x && i< 3 ) { x-- ; i++ ; }(A) 0 (B) 1 (C) 2 (D) 35. 下列代码编译执行后,屏幕上将显示什么结果(B )。
int val = 1;switch( val ){ case 1: cout <<"1";case 2: cout <<"2";default: cout <<"default";}(A) 1 (B) 12default(C) 代码编译失败,因为在case语句当中没有break(D) 代码编译失败,因为变量val不是int类型6. 设有数组定义:char array[]= "China\tis\nstrong\0right?"; strlen(array)的值为( A ) 。
A) 15 B) 16 C)22 D)237.下列语句叙述错误的是(B)。
int j=100,*q=&j;(A) *q表示简址访问变量j (B) q的值为100(C) q指向整型变量j (D) q的值是变量j的地址8. 在下面的函数声明语句中,有语法错误的是(C)。
(A) int funf( int, int ); (B) int fun( int x, int y );(C) int fun( int a, b ); (D) int fun(int, int =5);9. 若有定义语句:int a[5][6], *pa[5]; 则以下语句中正确的是(D)。
(A) pa=a; (B) pa[0]=a; (C) pa[0]= a[1][3]; (D) pa[1] = a[3] ;10. 设y为整型变量,不能正确表达数学关系5<y<9 的C++逻辑表达式是( A )。
(A) 5< y <9 (B) y==6||y==7||y==8(C) 5<y&& y<9 (D) !(y<=5)&&!(y>=9)11. 设char *str1,*str2; 分别指向两个字符串。
判断字符串str1和str2是否相等的表达式为(D )。
(A)str1=str2 (B) str1==str2(C) strcpy(str1,str2)==0 (D) strcmp(str1,str2)==012. 设有以下结构说明struct p{ int x; int y; } point;那么下列选项中正确的赋值语句是(A )。
(A) point.x = 1; point.y = 2; (B) point={ 1, 2 };(C) p.x = 1; p.y = 2; (D) p = { 1, 2 };13.已知int array[]={0,2,4,6,8,10},*p=array+1;下列选项中值等于0的表达式是( D )。
(A) *(p++) (B) *(++p)(C) *(p--) (D) *(--P)14. 有声明void f (int * & ); int a , *p = &a;下面选项中,正确的调用是( B )。
(A) f ( &a ); (B) f ( p ); (C) f ( *a ); (D) f ( *p ) ;15. 设int a=5, b=4, c=3, d=2; 则以下条件表达式的值为( D)。
a >b ? a :c >d ? c : d(A) 2 (B) 3 (C) 4 (D) 5二、读程序写运行结果(每小题5分,共30分)1、(5分)#include <iostream>using namespace std;int main(){ int x, y, z;x = 1; y = 2; z = 3;cout << ( --x && y++ || z++)<< endl;cout <<x<<’,’<<y<<','<<z<< endl;return 0;}答案:10,2,42、(5分)#include<iostream>using namespace std;int main(){ int i = 1, sE = 0, sO= 0;for( i =1; i < =10; i++ )switch( i % 2 ){ case 0: sE += i; continue;case 1: sO += i; break;}cout<<"sE = "<< sE<< "\nsO = "<< sO <<endl; return 0;}答案:sE = 30sO = 253、(5分)。
#include<iostream>using namespace std;void fun(){ static int a = 20; int b = 3;a += 3; b--;cout<<a<<'\t'<<b<<endl;}void main(){ for(int i=1; i <= 3; i++)fun();}答案:23 226 229 24、(5分)#include<iostream>#include<iomanip>using namespace std;void main(){int a[3][3], i, j;for ( i=0; i<3; i++ ){for ( j=0; j<3; j++ ){a[i][j] = ( i == j) ? 1:0 ;cout<<setw(2)<< *(a[i]+j);}cout<<endl;}}答案:1 0 00 1 00 0 15、(5分)#include<iostream>using namespace std;int f(int n){ if (!n) return 0;else return n*n + f( n - 1);}int main(){ cout << f(3) << endl;return 0;}答案:146、(5分)#include<iostream>using namespace std;void fun(int *x, int *y){ x = new int(10);*x = *x + 1;*y = *y + *x;}void main(){ int a =100, b=200;fun( &a, &b );cout<<a<<"-"<<b<<endl;}答案:100-211三、读程序填空(每空2分,共20 分)1.以下程序的功能是显示由符号组成的三角形图案。
例如,程序运行后,程序输出如图1所示。
图1#include<iostream>using namespace std;int main(){ int i1,j1,k1,n1;char ch;cout<<"How many lines ?\n";cin>>n1;cout<<"What character ?\n";cin>>ch;for( i1=1; i1<=n1; i1++ ){ for( k1=1;__(1)____; k1++ ) cout << " ";// k1<=n1-i1for( j1=1; (2) ; j1++ ) cout << ch ; // j1<=2*i1-1cout << endl;}}2、下面程序的运行输出如图2所示,请将程序补充完整。
图2#include<iostream>using namespace std;void print(int w){ int i;if( w ){ (3);// print( w-1 )for( i=1; i<=w; i++ )cout << w << " ";(4); //cout << endl}}void main(){ print( 6 );}3. 以下程序的功能是将一组数据从小到大排列后输出,并显示每个元素及它们在原数组中的下标,程序的一次运行如图3 所示。
请将程序补充完整。
图3#include<iostream>#include<iomanip>usingnamespace std;void sort(int*,int*,int);int main(){int i,n;int *p1,*p2;cout<<"请输入数组元素个数:"<<endl;cin>>n;p1=new int[n];(5);// p2=new int[n]cout<<”请输入各数组元素:”<<endl;for (i=0;i<n;i++){cin>>p1[i];p2[i]=i;}(6); // sort(p1,p2,n)cout<<"after sort:"<<endl;for(i=0;i<n;i++)cout<<setw(5)<<p2[i];cout<<endl;for(i=0;i<n;i++)cout<<setw(5)<<p1[i];cout<<endl;}void sort(int *q1,int *q2,int m){int i,j,t,temp;for(i=0;i<m-1;i++){t=i;for(j=i+1;j<m;j++)if (q1[t]>q1[j]) (7); //t=jif (t!=i){temp=q1[i];q1[i]=q1[t];q1[t]=temp;temp=q2[i];q2[i]=q2[t];q2[t]=temp;}}}4.以下程序的功能是将一个班的学生姓名和成绩存放到一个结构数组中,寻找和输出最高分的学生姓名和分数,程序的运行结果如图4所示。