文档库 最新最全的文档下载
当前位置:文档库 › 北理工A卷

北理工A卷

北理工A卷
北理工A卷

北京理工大学继续教育学院

2013年下半年

专业层次:人力资源(专升本)

《英语》期末考试卷(A卷)

(闭卷 120分钟卷面满分100分)

班级:姓名:学号:成绩:

PartⅠReading Comprehension (30%)

Directions: There are three passages in this part. Each passage is followed by some questions or unfinished statements. For each of them there are four choices marked A,B,C and D. You should decide on the best choice and blacken the corresponding letter on the Answer Sheet。

Passage 1

Questions 1 to 5are based on the following passage:

The reflective towers of New York City, which is on the Atlantic migrating(迁徙的)route , can be deadly for birds. “We live in an age of glass,” said https://www.wendangku.net/doc/224067293.html,urel, an architect.(76)“It can be a perfect mirror in certain lights, and the larger the glass, the more dangerous it is.” About 90,000 birds are killed by flying into building in the city each year. Often, they strike the lower levels of glass towers after searching for food in nearby parks. Such crashes are the second-leading cause of death for migrating birds, after habitat(栖息地)loss, with an estimated number of death ranging up to a billion a year.

(77)As glass office and apartment towers have increased in the last decade, so, too, have calls to make them less deadly to birds. San Francisco adopted bird-safety standard for new building in July. The United States Green Building Council, a nonprofit industry group that encourages the creation of environmentally conscious buildings, will introduce a bird-safety credit this as part of its environmental certification process.

There are no easy fixes, however. A few researchers are exploring glass designs that use ultraviolet(紫外线的)signals, but they are still in their infancy. Covers, dot patterns, shades and net are the main options available.

Often, only one section of a building needs to be changed. “You don’t necessarily have to treat every window,” https://www.wendangku.net/doc/224067293.html,urel said. “It would be too expensive to do the whole building.” The Jacob Convention Center, which has been undergoing

alterations, is the most recent building to voluntarily correct the problem of bird crashes. The architects used less reflective glass and dot patterns.

1. What is the main idea of the passage?

A. New York is a city of glass towers.

B. Glass tower are dangerous for migrating birds.

C. New York adopted new safety standards for buildings.

D. Glass towers are a new trend in the United States.

2. What is the number one cause of death for migrating birds?

A. Climate change

B. Habitat loss

C. Lack of food

D. Crashing into buildings

3. What does the word “fixes” in the third paragraph probably mean?

A. Choices

B. Explanations

C. Solutions

D. Developments

4. _____are used in the alteration of the Jacob K. Javits Convention Center.

A. Dot patterns

B. Shades

C. Nets

D. Covers

5. Which of the fowling statements is TRUE according to the passage?

A. In many cases, the whole building needs to be altered to prevent bird crashes.

B. The Jacob K.Javits Convention Center is the first building to deal with the problem of bird crashes.

C. About 90,000 birds are killed due to habitat loss in New York City each year.

D. Unfortunately, glass designs that use ultraviolet signals are still in their early stages.

Passage 2

Question 6 to 10 are based on the fowling passage:

Today’s students have grown up hearing more about Bill Gates than F.D.R., and they live in a world where amazing innovations(革新)are common. The current

18-year-olds, after all, were 8 when Google was founded by two students at Stanford; Mark Zuckerberg founded Facebook in 2004 while he was Harvard and they were entering high school. Having grown up digital(数字的),they are impatient to get on with life.

The easiest way to find kids like these is to check in on entrepreneurship(企业家才能)education, in which colleges and universities try to prepare their students to recognize opportunities and seize them.

A report published last year by the Kauffman Foundation, which finances programs to promote innovation on campuses, noted that more than 50,000 entrepreneurship programs are offered on two-and four-year campuses—up from just 250 courses in 1985. Lesa Mitchell , a Kauffman vice president, says that the foundation is extending the reach of its academic influence, which used to be found only in business schools. Now, the concept of entrepreneurship is blooming in engineering programs and medical school, and even in the liberal arts. “Our interest is the programs,” she says. “We need to spread out from the business school.”

Either as class projects or on their own, students in a variety of majors are coming up with ideas, writing business plans and seeing them through to prototype and, often, market. In their spare time, students in agricultural economics at Purdue invent new uses for bean; industrial design majors at Syracuse, in special laboratory, create wearable technologies.

(78)The entrepreneurship movement has its critics, especially among those who see college as a time for extensive academic exploration. “I just don’t think that entrepreneurship ranks so high in terms of national need,” says Daniel S.Greenberg, author of Science for sale: The perils, Rewards and Delusions of Campus Capitalism.

Leonard A.Schlesinger, Ba bson College’s president, says that the question of whether innovation can really be taught is “an age-old argument”.

6. When Google and Facebook were established, the founders were still_____。

A. in high school

B. in the army

C. in primary school

D. at college

7. According to the passage, what is the main purpose of entrepreneurship education?

A. To prepare students for future academic life

B. To prepare students to find opportunities and seize them.

C. To prepare students for overseas career.

D. To prepare student to develop interpersonal skills.

8. The word “prototype” in the fourth paragraph is most likely to mean_____.

A. model

B. strategy

C. method

D. stage

9. What does Daniel S.Grennberg think of entrepreneurship education?

A. Entrepreneurship, or at least certain elements of it, can be taught.

B. An entrepreneurship program can help students find what they really like and entrepreneurship isn’t all about business.

C. Entrepreneurship should be spread across different fields.

D. Colleges shouldn’t put too much emphasis on entrepreneurship programs.

10. What is the main idea of the passage?

A. Entrepreneurship courses in business schools.

B. Qualities of an entrepreneur.

C. Entrepreneurship education in colleges.

D. Kids in the information age.

Passage 3

Question 11 to 15 are based on the following passage:

Regret is as common an emotion as love or fear, and it can be nearly as powerful. So, in a new paper, two researchers set about trying to find out what the typical American regrets most. In telephone surveys, Neal Rose, a psychologist and professor of marketing at the School of Management at Northwestern Universtiy, and Mike Morrison, a doctoral candidate in psychology at University of Illinois, asked 370 Americans, aged 19 to 103,to talk about their most notable regret .Participants were asked what the regret was, when it happened, whether it was a result of something they did or di dn’t do, and whether it was something that could still be fixed.

The most commonly mentioned regret involved romance (浪漫的事)(18%)----lost loves or unfulfilled relationships. Family regrets came in second (16%),whit people

still feeling badly about being unkind to their brothers or sisters in childhood. Other frequently reported regrets involved career (13%) ,education (12%),money(10%) and parenting(9^%).

Rose and Morrison’s study, which is to be published in social psychological and personality science, is significant in that it surveyed a wide range of the American public, including people of all ages and socio-economic and educational backgrounds. Previous studies on regret have focused largely on college students, who predictably tend to have education-focused regrets, like wishing they had studied harder or a different major. The new survey shows that in the larger population, a person’s major. The new survey shows that in the larger population, a person’s “life circumstances—accomplishments, shortcomings ,situation in life—inject considerable fuel into the fires of regret,”the authors write.

(79)People with less education, for instance were more likely to report education regret. People with higher levels of education had the most career regrets. And those with no romantic partner tended to hold regrets regarding love. Broken down(分解、细分)by sex, more women(44%) than men (19%) had regrets about love and family----not surprising, since women “value social relationships more than men,”the authors write. In contrast ,men (34%) were more likely than women (27%) to mention work-related regrets, wishing they’d chosen a different career path, for instance ,or followed their passion.(80)Many participants also reported wishing they had worked less to spend more time with their children.

There was an even split between regrets about inaction (not doing something) and action (do something you wish you didn’t) .But, like previous studies, the current research found that some regrets are more likely than others to persist over time: people tend to hang on longer to the regret of inaction; meanwhile, regrets of action tend to be more recent.

11.In the second paragraph, the author shows ______.

A. the researchers’ findings

B. the importance of family

C. the importance of money

D. the importance of career

12. According to the passage , college student participants mainly had regrets about their ______.

A. family and childhood

B. study and major

C. career and job

D. romance and fear

13.The word “notable” in the first paragraph is closest in meaning to ______.

A. common

B. capable

C. wonderful

D. remarkable

14. Which of the following statements is TRUE?

A. The less education he or she has, the more regrets she or he would have.

B. The more education he or she has, the less regrets she or he would have.

C. More women than men had regrets about love and family.

D. The regret of action seems to last longer than that of inaction.

15. What is the main idea of this passage?

A. How regret is understood by a typical American.

B .Common regrets is more important than love and hate.

C. Why regret is more important than love and hate.

D. How regret has shaped Americans.

PartⅡ Vocabulary and Structure (30%)

Directions: In this part there are 30 incomplete sentences. For each sentence there are four choices marked A, B, C and D. Choose the ONE answer that best completes the sentences. Then blacken the corresponding letter on the Answer Sheet。

16. Mr Smith is coming to visit us soon. We’d better get everything ready before he _______.

A. arrives

B. arrive

C. will arrive

D. arrived

17._______yesterday, you would have met Professor Jones. But now he has left for London.

A. Did you come

B. Had you come

C. Should you come

D. Were you to come

18. The man denied_____ into the neighbor’s garden and ______his cow.

A. going...stealing

B. going…stole

C. went…stealing

D. went…stole

19.Ted worked like a horse in his youth, ______contributed to his great success later as a businessman.

A. that

B. who

C. what

D. which

20. A few hours ago, a small suitcase with some important papers _______ stolen from the general manager’s office.

A.is

B.are

C.were

D. was

21.______ on the New World,he felt like crying.

https://www.wendangku.net/doc/224067293.html,nd

https://www.wendangku.net/doc/224067293.html,nded

C.To land

D.Having landed

22.Visit our store.Nowhere else _________such good bargains.

A.you find

B.find you

C.do you find

D.you do find

23.After _________seemed an endless wait,ir was his turn to go into the doctor’s office.

A,this B.that C.which D.what

24.Ever since the Simiths moved to the lake area a year ago,they ______ better health.

A.could have enjoyed

B.had enjoyed

C.have been enjoying

D.are enjoying

25.The boss doesn’t want to talk about the accident;now he is in no ______ to do so.

A.feeling

B.attitude

C.emotion

D.Mood

26.I can’t understand why you regard it as music.It ______ me mad!

A.puts

B.sets

C.drivers

D.changes

27.Yesterday Mr Blake was caught in the rain and got wet through.______ he caught

a bad cold.

A.Consequently 因此

B.Finally最后

https://www.wendangku.net/doc/224067293.html,tely最近

D.Strangely奇怪的是

28.William likes to eat out,but he is not ______ about what he eats.

A.pecrliar

B.unusual 不寻常

C.particular 特别

D.special特殊

29.Their house stands at a hilltop, _____ the Hudson River down below.

A.seeing

B.viewing

C.looking at

D.overlooking

30. I can’t understand why my boss is always _____fault with my work.

A.finding

B.seeking

C.looking

D.making

31. This is the same knife _____ I lost yesterday.

A.which

B.what

C.like

D. as

32. --- When will you be back?

--- I’ll be back _____a couple of days.

A.after

B.for

C.about

D.in

33. We hear that they will _____ a new school here.

A.set down

B.set up

C.set off

D.set out

34. He will never forget the days _____ he spent in Japan.

A.when

B.after

C.that

D.how

35. Interestingly enough, the two brothers have noting in_______.

A. ordinary

https://www.wendangku.net/doc/224067293.html,mon

C.General

D.particular

36. The scientists are trying to find out the facts to _______ their theory.

A. support

B.carry

C.design

D.raise

37. The performance of the English team was ________. They played much worse than expected.

A. disappoint

B. disappointing

C. disappointed

D. to disappoint

38. You are welcome to order the goods now. But payment should be made________.

A. for advance

B. from advance

C. in advance

D. to advance

39. Speak louder so that you can make yourself _______.

A. heard

B.to hear

C.hearing

D.have been heard

40. Now it won’t be long before we meet again, ________?

A.will it

B.do we

C.won’t we

D.does it

41. Americans eat______ vegetables per person today as they did in the 1960s.

A. more than twice

B. as twice many

C. twice as many

D. more than twice as many

42. I was so familiar with her that I recognized her voice ______ I picked up the phone.

A. the moment

B. since

C. before

D. while

43. The education of ________ young is always ______ hot and serious topic.

A. /, /

B. the, a

C. /, the

D. the, the

44. Dad wondered where I’d been, and I ________ a story about being at Grandma’s

A. made out

B. made up

C. looked out

D. looked up

45. Your sister doesn’t study as _______ as you do.

A.hard

B.hardly

C.harder

D.hardest

PartⅢ Identification (10%)

Directions: Each of the following sentences has four underlined parts marked A, B, C and D. Identify the one that is not correct. Then blacken the corresponding letter on the Answer Sheet.

46. No sooner had they entered the room when the telephone rang.

A B C D

47. As a graduate from high school, Tom is faced with three choices: attending college, finding a job or the army.

A B C D

48. Those freshmen hope to offer some part-time jobs to support themselves financially.

A B C D

49. It was his nervousness in the interview what probably caused him to lose the job.

A B C D

50. Lucy’s parents give her everything she asks; what else does she need?

A B C D

51. I must work hard, however I’ll fail in the exam.

A B C D

52. I am used to read the paper after lunch. That’s one of the things I really enjoy.

A B C D

53. He told us that John, as well as his brother, were coming to the party.

A B C D

54. Ted has sat an the table and drank more beer than is good for his health.

A B C D

55. With no one to turn over for help in such a frightening situation, she was in despair.

A B C D

Part IV Cloze (10%)

Directions: There are 20 blanks in the following passage, and for each blank there are 4 choices marked A , B , C , and D at the end of the passage. You should choose ONE answer that best fits into the passage. Then blacken the corresponding letter on the Answer Sheet.

Experts suggest using a different password for every website you visit, and changing the password every few months. It takes trouble to keep them in mind, but it’s well worth the 56 .Be 57 .with your passwords and make it difficult it is for someone to enter your 58 .The more 59 you make your password, the more difficult it is for someone else to figure it 60 .

Use privacy settings(设置)on social websites to 61 entry into your personal information and limit the 62 of private information you share. Even seemingly innocent information you expose about yourself could be used 63 you. I once read about a burglary(入室盗窃). It 64 that the thieves selected that particular home 65 they discovered the owner was out of town by 66 a Facebook message.

According to personal safety experts, it isn’t a(n) 67 experience. The information you post on websites can 68 criminal activity. You may not think 69 about posting the concert you are going to or your weekend away, but could be a(n) 70 for trouble.

Information on the Internet has made it easier for thieves to steal any information about you. Never 71 your full birth date. Never respond to e-mails 72 personal or financial information. Do not freely offer personal information to anyone 73 you are certain who you are dealing with. 74 the necessary precautions(预防措施)is the best way to 75 you and your personal information stay protected.

56.A.effect B.effort https://www.wendangku.net/doc/224067293.html,bor D.matter

57.A.proud B.true C.honest D.creative

58.A.accounts B.records C.directions D.collections

https://www.wendangku.net/doc/224067293.html,plex B.careful C.diligent D.elastic

60.A.away B.on C.out D.in

61.A.respond B.resign C.restrict D.resemble

62.A.number B.amount C.pile D.piece

63.A.with B.for C.about D.against

64A.turned out B.turned in C.picked out D.picked up

65.A.which B.while C.because D.although

66.A.knowing B.reading C.inspecting D.realizing

67.A.impacted B.collected C.repaired D.isolated

68.A.lead to B.result from C.see off D.make up

69.A.out B.aloud C.once D.twice

70.A.resistance B.statement C.invitaion D.struggle

71.A.reveal B.revise C.resemble D.require

72.A.threatening B.requesting C.worshipping D.delivering

73.A.since B.as C.when D.untiil

74.A.Replacing B.Liberating C.Taking D.Depending

75.A.ensure B.separate C.spread D.switch

Part Ⅴ Translation(20%)

Section A

Directions: In this part there are five sentences which you should translate into Chinese.These sentences are all taken from the 3 passages you have just read in Reading Comprehension. You can refer back to the passages to identify their meanings in the context.

76.It can be a perfect mirror in certain lights, and the larger the glass, the more dangerous it is.

77.As glass office and apartment towers have increased in the last decade, so, too, have calls to make them less deadly to birds.

78.The entrepreneurship movement has its critics, especially among those who see college as a time for extensive academic exploration.

79.People with less education, for instance were more likely to report education regret.

80. Many participants also reported wishing they had worked less to spend more time with their children.

Section B

Directions: In this part there are five sentences in Chinese. You should translate them into English. Be sure to write clearly.

81.他站在窗户旁边,思考着自己的学习计划。

82.她设法按时完成了任务。

83.这本小说,我已经看了三遍,很感人。

84.他一回来我就告诉他这个消息。

85.思想是可以通过词语来表达的。

答案:

一:阅读理解:

1-5 C B C A D 6-10 A B A D C 11-15 A B D C B

二:词汇语法题

16-20 A B A D D 21-25 D C B C D 26-30 C A A D A 31-35 D D B A B

36-40 A C C A A 41-45 C D C A A

三:挑错题

46-50 C D D C A 51-55 C C D C B

四:完形填空

56-60 B D A A C 61-65 CBCAB 66-70 BDAAA 71-75 ABDCA

五:英汉互译

76. 在某些光线下,它可能成为一面极好的镜子,玻璃越大,危险越多。

77. 近几十年里,随着玻璃设置的办公室和公寓大楼的逐渐增加,也因此在建造房屋时使它们设计能减少鸟类的死亡。

78.企业家才能的活动也遭受了一些负面评论,特别是那些把学校视为扩展学术研究地方的人。

79.比方说,人的文化程度越低,对教育方面的遗憾就越强烈。

80. 报道说,许多参与者希望减少工作量,能获得更多的时间陪伴自己的孩子。

81.Standing by the window,he is thinking about his study programme.

82.She tries every effort to finish the work on time.

83.This novel,which I have read three times,is so moving.

84.I will tell him the news as soon as he comes back .

85 Thoughts can be expressed by words.

北京理工大学汇编语言实验六磁盘文件存取实验报告

第六章磁盘文件存取实验(设计性实验) 一、实验要求和目的 1.理解文件、目录的概念; 2.了解FCB(文件控制块)方式文件管理方法; 3.掌握文件代号式文件存取方式; 4.学习使用文件指针读取文件 二、软硬件环境 1.硬件环境:计算机系统windows; 2.软件环境:装有MASM、DEBUG、LINK、等应用程序。 三、实验涉及的主要知识单元 DOS功能调用中断(INT 21H)提供了两类磁盘文件管理功能,一类是FCB(文件控制块)方式,另一类是文件代号式存取方式。 对于文件的管理,实际上是对文件的读写管理,DOS 设计了四种存取文件 方式:顺序存取方式、随机存取方式、随机分块存取方式和代号法存取方式。文件的处理步骤 A)写之前必须先建立文件、读之前必须先打开文件。 B)写文件之后一定要关闭文件。通过关闭文件,使操作系统确认此 文件放在磁盘哪一部分,写后不关闭会导致写入文件不完整。 1、文件代号式存取方式: 当用户需要打开或建立一个文件时,必须提供文件标识符。文件标识符用ASCII Z 字符串表示。ASCII Z 字符串是指文件标识符的ASCII 字符串后面再加1 个“0”字符。文件标识符的字符串包括驱动器名、路径名和文件名。其格式为 [d:][path]filename[.exe] 其中d 为驱动器名,path 为路径名,.exe 为文件名后缀。 中断 21H 提供了许多有关目录和文件操作的功能,其中文件代号式存取方式常用的功能如下: 2、操作目录的常用功能 39H——创建目录 3BH——设置当前目录 3AH——删除目录 47H——读取当前目录 有关中断功能的详细描述和调用参数在此从略,需要查阅者可参阅相关资料 之目录控制功能。 3、用文件句柄操作文件的常用功能 3CH——创建文件 4EH——查找到第一个文件 3DH——打开文件 4FH——查找下一个文件 3EH——关闭文件 56H——文件换名 3FH——读文件或设备 57H——读取/设置文件的日期和时间 40H——写文件或设备 5AH——创建临时文件 41H——删除文件 5BH——创建新文件

大学高等数学上考试题库(附答案)

《高数》试卷1(上) 一.选择题(将答案代号填入括号内,每题3分,共30分). 1.下列各组函数中,是相同的函数的是( ). (A )()()2ln 2ln f x x g x x == 和 (B )()||f x x = 和 ()2g x x = (C )()f x x = 和 ()() 2 g x x = (D )()|| x f x x = 和 ()g x =1 2.函数()()sin 42 0ln 10x x f x x a x ?+-≠? =+?? =? 在0x =处连续,则a =( ). (A )0 (B )1 4 (C )1 (D )2 3.曲线ln y x x =的平行于直线10x y -+=的切线方程为( ). (A )1y x =- (B )(1)y x =-+ (C )()()ln 11y x x =-- (D )y x = 4.设函数()||f x x =,则函数在点0x =处( ). (A )连续且可导 (B )连续且可微 (C )连续不可导 (D )不连续不可微 5.点0x =是函数4 y x =的( ). (A )驻点但非极值点 (B )拐点 (C )驻点且是拐点 (D )驻点且是极值点 6.曲线1 || y x = 的渐近线情况是( ). (A )只有水平渐近线 (B )只有垂直渐近线 (C )既有水平渐近线又有垂直渐近线 (D )既无水平渐近线又无垂直渐近线 7. 211 f dx x x ??' ???? 的结果是( ). (A )1f C x ?? -+ ??? (B )1f C x ?? --+ ??? (C )1f C x ?? + ??? (D )1f C x ?? -+ ??? 8. x x dx e e -+?的结果是( ). (A )arctan x e C + (B )arctan x e C -+ (C )x x e e C --+ ( D )ln()x x e e C -++ 9.下列定积分为零的是( ).

北理乐学C语言答案,最新

7.入门计算圆柱的侧面积及体积 #include void main() { double a,b; scanf("%lf\n%lf",&a,&b); printf("s=%.2lf,v=%.2lf\n",2*3.14*a*b,3.14*a*a*b); } 1.Hello world. 输入:无 输出:Hello world. 程序: #include int main() { printf("Hello world.\n"); return 0; } 2.Welcome to Beijing.

程序: #include int main() { printf("Welcome\n"); printf("to\n"); printf("Beijing.\n"); return 0; } 3. 求A+B 输入:整数1 整数2 输出:整数1+整数2=和 程序: #include int main() { int a,b; scanf("%d",&a); scanf("%d",&b); printf("%d+%d=%d\n",a,b,a+b); return 0; } 4. 求x 的3次方 输入:一个整数。 输出:该整数的 3 次方值。

程序: #include int main() { int x; scanf("%d",&x); printf("%d\n",x*x*x); return 0; } 5. 学习打印你的第一个图形 编写一个小程序,要求输出的是4 行由*号组成的等腰三角形。 程序: #include int main() { printf(" *\n"); printf(" ***\n"); printf(" *****\n"); printf("*******\n"); return 0; } 6. 一年级的算术题 输入:接受两个整数,每个整数之间使用空格分隔。例如输入格式为:123 444 输出:分别输出按照整型数据进行+、-、*、/、* 之后的运行结果。

北京理工大学汇编实验五

一、实验目的 1、掌握子程序有关基本知识,学会子程序设计方法; 2、掌握主程序与子程序之间的调用关系及调用方法; 3、掌握汇编语言字符串处理方法; 4、掌握字符串的输入输出程序设计方法; 5、掌握数制转换程序实现方法。 二、实验软硬件环境 1、硬件环境:惠普64 位一体化计算机及局域网; 2、软件环境:windows 8,红蜘蛛管理系统,MASM for Windows。 三、实验相关知识 把功能相对独立的程序段单独编写和调试,作为一个相对独立的模块供程序使用,就性成子程序。子程序可以实现源程序的模块化,可简化源程序结构,可以提高编程效率。 1) 子程序的定义语句格式 汇编语言子程序以proc 语句行开始,以endp 语句行结束。如: 过程名PROC near[或far] 过程体 .......................... 过程名ENDP 在主程序中用CALL 过程名调用。主程序和子程序之间传递参数通常通过栈来进行,当然也可以用某些缺省的寄存器或内存来传递。但以通过栈来传递参数程序的通用性最强。 2) 子程序调用说明 子程序从PROC 语句开始,以ENDP 语句结束,程序中至少应当包含一条RET 语句用以返回主程序。在定义子程序时,应当注意其距离属性:当子程序和调用程序在同一代码段中时,用NEAR 属性;当子程序及其调用程序不在同一个代码段中时,应当定义为FAR 属性。当由DOS 系统进入子程序时,子程序应当定义为FAR 属性。为执行子程序后返回操作系统,在子程序的前几条指令中设置返回信息。 3) 子程序使用中的问题 A、主程序调用子程序是通过CALL 指令来实现的。子程序执行后,通过RET 指令, 返回主程序调用指令CALL 的下一条指令,继续执行主程序。一个子程序可以由 主程序在不同时刻多次调用。如果在子程序中又调用了其他的子程序,则称为子程 序的嵌套。特别是当子程序又能调用子程序本身时,这种调用称为递归。 B、调用子程序时寄存器及所用存储单元内容的保护。如果子程序中要用到某些寄存器 或存储单元时,为了不破坏原有的信息,要将寄存器或存储单元的原有内容压栈保 护,或存入子程序不用的寄存器或存储单元中。 C、用于中断服务的子程序则一定要把保护指令安排在子程序中,这是因为中断是随机 出现的,因此无法在主程序中安排保护指令。 D、调用程序在调用子程序时需要传送一些参数给子程序,这些参数是子程序运算中所 需要的原始数据。子程序运行后要将处理结果返回调用程序。原始数据和处理结果 的传递可以是数据,也可以是地址,统称为参数传递。 E、参数传递必须事先约定,子程序根据约定从寄存器或存储单元取原始数据(称入口 参数);进行处理后将处理结果(称出口参数)送到约定的寄存器或存储单元,返回到调用程序。参数传递一般有下面三种方法:用寄存器传递:适用于参数传递较少、

济南大学大一上学期高等数学试题

高等数学(上)模拟试卷一 一、 填空题(每空3分,共42分) 1 、函数lg(1)y x = -的定义域是 ; 2、设函数20() 0x x f x a x x ?<=?+≥?在点0x =连续,则a = ; 3、曲线45y x =-在(-1,-4)处的切线方程是 ; 4、已知3()f x dx x C =+? ,则()f x = ;5、21lim(1)x x x →∞-= ; 6、函数32()1f x x x =-+的极大点是 ; 7、设()(1)(2)2006)f x x x x x =---……(,则(1)f '= ; 8、曲线x y xe =的拐点是 ;9、201x dx -?= ; 10、设32,a i j k b i j k λ=+-=-+r r r r r r r r ,且a b ⊥r r ,则λ= ; 11、2 lim()01x x ax b x →∞--=+,则a = ,b = ; 12、311lim x x x -→= ;13、设 ()f x 可微,则()()f x d e = 。 二、 计算下列各题(每题5分,共20分) 1、011lim()ln(1)x x x →-+2 、y =y '; 3、设函数()y y x =由方程xy e x y =+所确定,求0x dy =; 4、已知cos sin cos x t y t t t =??=-?,求dy dx 。 三、 求解下列各题(每题5分,共20分) 1、421x dx x +? 2、2sec x xdx ?3 、40?4 、2201dx a x + 四、 求解下列各题(共18分): 1、求证:当0x >时,2 ln(1)2x x x +>- (本题8分) 2、求由,,0x y e y e x ===所围成的图形的面积,并求该图形绕x 轴旋

2003-2016年北京理工大学889数据结构考研真题及答案解析 汇编

2017版北京理工大学《889数据结构》全套考研资料 我们是布丁考研网北理工考研团队,是在读学长。我们亲身经历过北理工考研,录取后把自己当年考研时用过的资料重新整理,从本校的研招办拿到了最新的真题,同时新添加很多高参考价值的内部复习资料,保证资料的真实性,希望能帮助大家成功考入北理工。此外,我们还提供学长一对一个性化辅导服务,适合二战、在职、基础或本科不好的同学,可在短时间内快速把握重点和考点。有任何考北理工相关的疑问,也可以咨询我们,学长会提供免费的解答。更多信息,请关注布丁考研网。 以下为本科目的资料清单(有实物图及预览,货真价实): 2017年北理工《数据结构》全套资料包含: 一、北京理工大学《数据结构》历年考研真题 2016年北理工《数据结构》考研真题 2015年北理工《数据结构》考研真题 2014年北理工《数据结构》考研真题 2013年北理工《数据结构》考研真题 2008年北理工《数据结构》考研真题 2007年北理工《数据结构》考研真题 2006年北理工《数据结构》考研真题 2005年北理工《数据结构》考研真题 2004年北理工《数据结构》考研真题 2003年北理工《数据结构》考研真题 二、北京理工大学889《数据结构》考研经验总结。 注意了:北理工889数据结构是近几年开始的科目,以前都是跟其他科目综合考试,2008年之后真题为回忆版,请大家了解好了再买,这些都是纯真题,买后不能退款。 三、北理工《数据结构》期末试题10套及答案。... 四、北理工《数据结构》考研复习提纲。 五、北理工《数据结构》考研题库及答案。 六、、严蔚敏《数据结构》全套教学视频48课时。(电子版) 七、、严蔚敏《数据结构》课后习题答案。 以下为截图及预览: 2007年真题

北京理工大学网络教室C语言编程题库及答案(绝对经典)

北京理工大学网络教室C语言编程题库及答案(绝对经典)

1.Hello world. 输入:无 输出:Hello world. 程序: #include int main() { printf("Hello world.\n"); return 0; } 2.Welcome to Beijing. 程序: #include int main() { printf("Welcome\n"); printf("to\n"); printf("Beijing.\n"); return 0; } 3. 求A+B 输入:整数1 整数2

输出:整数1+整数2=和 程序: #include int main() { int a,b; scanf("%d",&a); scanf("%d",&b); printf("%d+%d=%d\n",a,b,a+b); return 0; } 4. 求 x 的 3次方 输入:一个整数。 输出:该整数的 3 次方值。 程序: #include int main() { int x; scanf("%d",&x); printf("%d\n",x*x*x); return 0; } 5. 学习打印你的第一个图形

编写一个小程序,要求输出的是 4 行由*号组成的等腰三角形。 程序: #include int main() { printf(" *\n"); printf(" ***\n"); printf(" *****\n"); printf("*******\n"); return 0; } 6. 一年级的算术题 输入:接受两个整数,每个整数之间使用空格分隔。例如输入格式为:123 444 输出:分别输出按照整型数据进行 +、-、*、/、* 之后的运行结果。 程序: #include int main() { int a,b; scanf("%d %d",&a,&b); printf("%d+%d=%d\n",a,b,a+b); printf("%d-%d=%d\n",a,b,a-b);

北京理工大学汇编语言实验报告实验五 子程序设计实验

实验五子程序设计实验(设计性实验) 一、实验要求和目的 1.熟悉汇编语言程序设计结构; 2.熟悉汇编语言子程序设计方法; 3.熟悉利用汇编语言子程序参数传递方法; 4.熟悉汇编语言字符串处理基本指令的使用方法; 5.掌握利用汇编语言实现字符串的输入输出程序设计方法; 6.掌握数制转换程序实现方法。 二、软硬件环境 1、硬件环境:计算机系统windows; 2、软件环境:装有MASM、DEBUG、LINK、等应用程序。 三、实验涉及的主要知识 A)子程序知识要点: 1、掌握子程序的定义语句; 过程名 PROC [near/far] 过程体 RET 过程名 ENDP 2.子程序结构形式 一个完整的子程序一般应包含下列内容: 1. )子程序的说明部分 在设计了程序时,要建立子程序的文档说明,使用户能清楚此子程序的功能和调用方法. 说明时,应含如下内容: .子程序名:命名时要名中见意. .子程序的功能:说明子程序完成的任务; .子程序入口参数:说明子程序运行所需参数及存放位置; .子程序出口参数:说明子程序运行结果的参数及存放位置; .子程序所占用的寄存器和工作单元; .子程序调用示例; 2、)掌握子程序的调用与返回 在汇编语言中,子程序的调用用CALL,返回用RET 指令来完成。 .段内调用与返回:调用子程序指令与子程序同在一个段内。因此只修改IP; .段间调用与返回:调用子程序与子程序分别在不同的段,因此在返回时,需同时修改CS:IP。 3.)子程序的现场保护与恢复 保护现场:在子程序设计时,CPU 内部寄存器内容的保护和恢复。 一般利用堆栈实现现场保护和恢复的格式: 过程名PROC [NEAR/FAR]

大一高等数学试题及答案

期末总复习题 一、填空题 1、已知向量2a i j k =+- ,2b i j k =-+ ,则a b ? = -1 。 2、曲线2x z =绕z 轴旋转所得曲面方程为 z=x 2 + y 2 。 3、级数1113n n n ∞ =?? + ???∑的敛散性为 发散 。 4、设L 是上半圆周2 2 2 a y x =+(0≥y ),则曲线积分22 1 L ds x y +?= a π 5.交换二重积分的积分次序:?? --01 2 1),(y dx y x f dy = dy y x dx ),(f 0 x -12 1 ? ? 6.级数∑ ∞ =+1 )1(1 n n n 的和为 1 。 二、选择题 1、平面0)1(3)1(=+++-z y x 和平面02)1()2(=+--+z y x 的关系 ( B ) A 、重合 B 、平行但不重合 C 、一般斜交 D 、垂直 2. 下列曲面中为母线平行于z 轴的柱面的是 ( C ) A 、2221x z += B 、2221y z += C 、2221x y += D 、22221x y z ++= 3. 设)0(4:2 2 >≤+y y x D ,则32222 ln(1) 1 D x x y dxdy x y ++=++?? ( A ) A 、2π B 、0 C 、1 D 、4π 4、设)0(4:22>≤+y y x D ,则??=D dxdy ( A ) A 、π16 B 、π4 C 、π8 D 、π2 5、函数22504z x y =--在点(1,-2)处取得最大方向导数的方向是 ( A ) A 、216i j -+ B 、216i j -- C 、216i j + D 、216i j - 6 、 微 分 方 程 2 2 ()()0y y y ' ''+ - =的阶数为 ( B ) A 、1 B 、2 C 、4 D 、6 7.下列表达式中,微分方程430y y y ''-+=的通解为

北京理工大学汇编试题

一、数制转换,以下数为带符号数,表达成字节或字的形式:(10分) (-327)10 = ()2 (70b6)16=()10 (11010001)2 =()10 (0101010101011001)2=()10 ( 2572)10 =()16 二、指出划线部分的寻址方式,并计算其物理地址:(10分) 已知: (CS)=2100H, (DS)=2400H, (ES)=2800H, (SS)=2600H, (BX)=0600H, (DI)=0200H, (SI)= 0300H, (BP)=0400H, BUF=1000H 1、MOV CL ES:[1500H] ;寻址方式:物理地址: 2、CMP SI, [DI] ;寻址方式:物理地址: 3、ADD AX, BUF [BP] [SI] ;寻址方式:物理地址: 4、CALL WORD PTR CS:[SI] ;寻址方式:物理地址: 5、LEA DX, [BX+SI] ;寻址方式:物理地址: 三、已知一程序数据段如下,请在右边表格中填写该数据段数据存储的形式。(12 分,未初始化的单元填写“xx”) DATA SEGMENT Array C=50H BUFFER DB 'B',0BH, B_BYTE LABEL BYTE DATA1 DW 0FFAAH ORG $+1 DATA2 DW B_BYTE DATA3 DW C DATA4 DB 3 DUP(20H),0FFH DATA ENDS 四、写出下列程序段的运行结果,并逐条注释每条指令。

1. 该程序段执行后,BX= .,为什么?(用图表示)(9分)ADDR DW PROC0,PROC1,PROC2,PROC3,PROC4,PROC5,PROC6 DW PROC7,PROC8,PROC9 LEA SI,ADDR ADD SI,2 MOV BX,[SI] INC SI INC SI PUSH BX MOV AX,[SI] INC SI INC SI PUSH AX PUSH BP MOV BP,SP MOV DX,[BP+2] CALL [SI] … PROC1 PROC MOV BX,1 RET PROC1 ENDP PROC2 PROC MOV BX,2 RET PROC2 ENDP PROC3 PROC MOV BX,3 RET PROC3 ENDP 余此类推… (9分)2. 下面这段程序的功能是。

大学高数试卷及答案

浙江农林大学 2016 - 2017 学年第 一 学期期中考试 课程名称: 高等数学I 课程类别: 必修 考试方式: 闭卷 注意事项:1、本试卷满分100分。 2、考试时间 120分钟。 一、单项选择题(在每小题的四个备选答案中,选出一个正确答案,并将正确答案的选项填在题后的括号内。每小题3分,共21分) 1.下列各式正确的是: ( ) A. sin lim 1x x x →+∞= B. 0sin lim 0x x x →= C. 1lim 1x x e x →+∞??+=- ??? D. 1lim 1x x e x →+∞ ?? += ??? 2. 当0x +→ ( ) 1 B. ln C. 1- 1-3. 设()f x 在x a =的某邻域有定义,则它在该点处可导的一个充分条件是:( ) A.1lim ()()h h f a f a h →+∞?? +-???? 存在 B. 0(2)()lim h f a h f a h h →+-+存在 C. 0 ()()lim 2h f a h f a h h →+--存在 D. 0()() lim h f a f a h h →--存在 学院: 专业班级: 姓名: 学号: 装 订 线 内 不 要 答 题

4. 函数33y x x =-在区间[0,1]上的最小值是: ( ) A. 0 B. 没有 C. 2 D. 29 - 5. 函数21y x =-在区间[1,1]-上应用罗尔定理时,所得到的中值ξ= ( ) A. 0 B. 1 C. 1- D. 2 6.设函数2 ()(1)0 ax e x f x b x x ?≤=?->?处处可导,那么: ( ) A .1a b == B .2,1a b =-=- C .0,1a b == D .1,0a b == 7. 设x a =为函数()y f x =的极值点,则下列论述正确的是 ( ) A .'()0f a = B .()0f a = C .''()0f a = D .以上都不对 二、填空题(每小题3分,共21分) 1. 极限232)sin (1cos lim x x x x x +-+∞→= . 2 .极限lim n →∞ ?? +L =. 3.设函数f (x )=2310 22 2 x x x x a x ?+-≠? -??=?在点x =2处连续,则a = . 4. 函数()sin x f x x = 的间断点为 . 5. 函数22ln y x x =-的单调减区间为 . 6. 设函数ln y =dy = . 7.椭圆曲线cos sin x a t y b t =??=? 在4t π =相应的点处的切线方程为 .

北理C语言作业及答案2

34 北理工的恶龙 成绩: 10 / 折扣: 0.8 背景: 最近,北理工出现了一只恶龙,它长着很多头,而且还会吐火,它将会把北理工烧成废墟,于是,校长下令召集全校所有勇士杀死这只恶龙。要杀死这只龙,必须把它所有的头都砍掉,每个勇士只能砍一个龙头,龙的每个头大小都不一样,一个勇士只有在身高不小于龙头的直径的情况下才能砍下它。而且勇士们要求,砍下一个龙头必须得到和自己身高厘米数一样的学分。校长想花最少的学分数杀死恶龙,于是找到你寻求帮助。 输入: 第一行龙头数n , 勇士人数m (1<=n, m<=100 )接下来n 行,每行包含一个整数,表示龙头的直径接下来m 行,每行包含一个整数,表示勇士的身高l 输出: 如果勇士们能完成任务,输出校长需要花的最小费用;否则输出“ bit is doomed! ” 测试输入期待的输出 时间限制内存限制额外进程 测试用例 1 以文本方式显示 1. 2 3? 2.5? 3.4? 4.7? 5.8? 6.4? 以文本方式显示 1.11? 1秒64M 0 测试用例 2 以文本方式显示 1. 2 1? 2.5? 3.5? 4.10? 以文本方式显示 1.bit is doomed!? 1秒64M 0 #include void main() { int s=0,t,i,j,m,n,a[100],b[100],c[100]; for(i=0;i<=99;i++) a[i]=0,b[i]=0,c[i]=0; scanf("%d%d",&m,&n); for(i=0;i<=m-1;i++)

scanf("%d",&a[i]); for(i=0;i<=n-1;i++) scanf("%d",&b[i]); if(m>n) printf("bit is doomed!\n"); else { for(i=0;i<=m-1;i++) for(j=i;j<=m-1;j++) {if(a[i]>a[j]) {t=a[i],a[i]=a[j],a[j]=t;}} for(i=0;i<=n-1;i++) for(j=i;j<=n-1;j++) {if(b[i]>b[j]) {t=b[i],b[i]=b[j],b[j]=t;}} t=0; for(i=0;i<=m-1;i++) for(j=0;j<=n-1;j++) if(a[i]<=b[j]) {c[t]=b[j]; t++; b[j]=0; break;} if(t

北京理工大学汇编实验二报告

北京理工大学汇编实验二报告

本科实验报告实验名称:算术运算类操作实验

一、实验要求和目的 1、了解汇编语言中的二进制、十六进制、十进制、BCD 码的表示形式; 2、掌握各类运算类指令对各状态标志位的影响及测试方法; 3、熟悉汇编语言二进制多字节加减法基本指令的使用方法; 4、熟悉无符号数和有符号数乘法和除法指令的使用; 5、掌握符号位扩展指令的使用。 6、掌握 BCD 码调整指令的使用方法 二、软硬件环境 1、硬件环境:计算机系统 windows; 2、软件环境:装有 MASM、DEBUG、LINK、等应用程序。 三、实验涉及的主要知识 1、加减法处理指令 主要有加法指令 ADD,带进位加法 ADC,减法指令 SUB,带进位减法指令 SBB。 2.乘除法指令和符号位扩展指令 主要有无符号数乘法指令MUL,带符号数乘

法指令IMUL,无符号数除法指令DIV,带符号数除法指令 IDIV,以及符号位从字节扩展到字的指令 CBW 和从字扩展到双字的指令 CWD。 3.BCD 码的调整指令 主要有非压缩的BCD 码加法调整指令DAA,压缩的 BCD 码减法调整指令 DAS,非压缩的 BCD 码加法调整指令 AAA,非压缩的 BCD 码减法调整指令 AAS,乘法的非压缩 BCD码调整指令 AAM,除法的非压缩 BCD 码调整指令 AAD。 8088/8086 指令系统提供了实现加、减、乘、除运算的上述基本指令,可对表 1 所示的数据类型进行数据运算。 表 1-2-1 数据类型数据运算表

四、实验内容与步骤 1、对于两组无符号数,087H 和 034H,0C2H 和5FH,试编程求这两组数的和差积商,并考虑计算结果对标志寄存器中状态标志位的影响:(1)实验流程 将一组 操作数 分别用 ADD,SUB,MUL,DIV 运算 (2)实验代码: DATAS SEGMENT BUF1 DB 087H BUF2 DB 034H BUF3 DB 4 DUP(?);此处输入数据段代码 DATAS ENDS

北京理工大学汇编实验五实验报告概要

本科实验报告实验名称:子程序设计实验

实验五子程序设计实验(设计性实验) 一、实验要求和目的 1.熟悉汇编语言程序设计结构; 2.熟悉汇编语言子程序设计方法; 3.熟悉利用汇编语言子程序参数传递方法; 4.熟悉汇编语言字符串处理基本指令的使用方法; 5.掌握利用汇编语言实现字符串的输入输出程序设计方法; 6.掌握数制转换程序实现方法。 二、软硬件环境 1、硬件环境:计算机系统windows; 2、软件环境:装有MASM、DEBUG、LINK、等应用程序。 三、实验涉及的主要知识 A)子程序知识要点: 1、掌握子程序的定义语句;过 程名PROC [near/far] 过程 体 RET 过程名ENDP 2.子程序结构形式一个完整的子程序一般应包含下列内容: 1. )子程序的说明部分 在设计了程序时,要建立子程序的文档说明,使用户能清楚此子程序的功能和调用方法. 说明时,应含如下内容: .子程序名:命名时要名中见意. .子程序的功能:说明子程序完成的任务; .子程序入口参数:说明子程序运行所需参数及存放位置; .子程序出口参数:说明子程序运行结果的参数及存放位置; .子程序所占用的寄存器和工作单元; .子程序调用示例; 2、)掌握子程序的调用与返回在汇编语言中,子程序的调用用CALL,返回用RET指令 来完成。 .段内调用与返回:调用子程序指令与子程序同在一个段内。因此只修改IP; .段间调用与返回:调用子程序与子程序分别在不同的段,因此在返回时,需同时修改CS:IP。 3.)子程序的现场保护与恢复保护现场:在子程序设计时,CPU内部寄存器内容的

保护和恢复。 一般利用堆栈实现现场保护和恢复的格式:过程名PROC [NEAR/FAR] PUSH AX PUSH BX . . PUSH DX . . . POP DX . . . POP AX RET 过程名ENDP 4.子程序的参数传递方法 1.寄存器传递参数这种方式是最基本的参数传递方式。 2.存储器单元传(变量)递参数 这种方法是在主程序调用子程序前,将入口参数存放到约定的存储单元中;子程序运行时到约定存储位置读取参数;子程序执行结束后将结果也放在约定存储单元中。 3.用堆栈传递参数 利用共享堆栈区,来传递参数是重要的的方法之一。 B)字符、字符串输入输出知识要点: 在实际应用中,经常需要从键盘输入数据并将结果等内容显示到屏幕上,方便程序控制及查看结果。汇编语言的数据输入和输出分成两类,一是单个字符数据的输入输出,一是字符串数据的输入输出。都可以通过DOS功能调用来实现,下面就分别介绍下用来实现数据输入输出的功能调用的使用方法。 1、单个字符输入 单个字符输入可以利用DOS的1号功能调用来完成,使用方法为: MOV AH,1 INT 21H 这两条语句执行后,光标会在屏幕上闪烁,等待输入数据,输入的数据以ASCII 码形式存储在AL寄存器中。 2、单个字符输出 单个字符输出可利用DOS2号功能调用来完成,使用方法为: MOV DL,’?’ MOV AH,2

大学高数试卷及标准答案

. 农林大学 2016 - 2017 学年第 一 学期期中考试 课程名称: 高等数学I 课程类别: 必修 考试式: 闭卷 注意事项:1、本试卷满分100分。 2、考试时间 120分钟。 一、单项选择题(在每小题的四个备选答案中,选出一个正确答案,并将正确答案的选项填在题后的括号。每小题3分,共21分) 1.下列各式正确的是: ( ) A. sin lim 1x x x →+∞= B. 0sin lim 0x x x →= C. 1lim 1x x e x →+∞??+=- ??? D. 1lim 1x x e x →+∞ ?? += ??? 2. 当0x +→ 等价的无穷小量是: ( ) A. 1 B. ln C. 1- D. 1- 3. 设()f x 在x a =的某邻域有定义,则它在该点处可导的一个充分条件是:( ) A.1lim ()()h h f a f a h →+∞?? +-???? 存在 B. 0(2)()lim h f a h f a h h →+-+存在 C. 0 ()()lim 2h f a h f a h h →+--存在 D. 0()() lim h f a f a h h →--存在 4. 函数33y x x =-在区间[0,1]上的最小值是: ( ) 学院: 专业班级: 姓名: 学号: 装 订 线 内 不 要 答 题

A. 0 B. 没有 C. 2 D. 29 - 5. 函数21y x =-在区间[1,1]-上应用罗尔定理时,所得到的中值ξ= ( ) A. 0 B. 1 C. 1- D. 2 6.设函数2 ()(1)0 ax e x f x b x x ?≤=?->?处处可导,那么: ( ) A .1a b == B .2,1a b =-=- C .0,1a b == D .1,0a b == 7. 设x a =为函数()y f x =的极值点,则下列论述正确的是 ( ) A .'()0f a = B .()0f a = C .''()0f a = D .以上都不对 二、填空题(每小题3分,共21分) 1. 极限232)sin (1 cos lim x x x x x +-+∞→= . 2 .极限2 lim n n →∞ ?? + + +=. 3.设函数f (x )=2310 22 2 x x x x a x ?+-≠? -??=? 在点x =2处连续,则a = . 4. 函数()sin x f x x =的间断点为 . 5. 函数22ln y x x =-的单调减区间为 . 6. 设函数ln tan y =,则dy = . 7.椭圆曲线cos sin x a t y b t =??=? 在4t π =相应的点处的切线程为 . 三、求下列极限(每小题6分, 共18分) 1. 求极限 1 1sin 1lim 2 --+→x x e x x

北理工C语言编程网上作业答案

H1:计算通用产品代码(UPC)的校验位(选作) 成绩: 5 / 折扣: 0.8 背景 许多年来,货物生产商都会把超市售卖的每件商品上放置一个条码。这种被称为通用产品代码(Universal Product Code,缩写UPC)的条码可以识别生产商和产品。超市可以通过扫描产品上的条码来确定支付此项商品的费用。每一个条码由十二位数字构成,通常这些数字会显示在条码下面。例如,包装为26盎司的Morton牌碘化盐所用条码下的数字是: 0 24600 01003 0 第一个数字表示商品的种类(0表示大部分的食品杂货,2表示需要称量的货品,3表示药品或和健康相关的商品,而5表示优惠券)。接下来的一组五位数字用来识别生产商。而第二组五位数字则用来区分产品类型(其中包括包装尺寸)。最后一位数字是“校验位”,它可以帮助鉴别先前数字中的错误。如果条码扫描出现错误,那么前十一位数字和最后一位数字可能会不一致,而超市扫描机也会拒绝整个条码。 下面是一种计算校验位的方法:首先把第一位、第三位、第五位、第七位、第九位和第十一位数字相加。然后把第二位、第四位、第六位、第八位和第十位数字相加。接着把第一次加法结果乘以3后再加上第二次加法的结果。随后,再把上述结果减去1。减法后的结果除以10取余数。最后,用9减去上一步骤中得到的余数。现在以Morton碘盐为例,第一组数字的加法是0+4+0+0+0+3=7,而第二组数字的加法是2+6+0+1+0=9。把第一组加法值乘以3后再加上第二组加法值得到的结果是30。再减去1,结果变为29。再把这个值除以10取余数为9。9在减去余数结果9,最终值为0。 输入 每次输入三行数据,第一行是UPC的第一位数字,第二行是UPC的第一组五位数字,第三行是UPC的第二组五位数字。 输出 UPC的校验位

南京工业大学新编期末高等数学a试卷a精选精选精选

南京工业大学 高等数学A-2 试卷(A )卷(闭) 2010--2011学年 第 二 学期 使用班级 江浦10级 学院 __ 班级 __学号 __ 姓名 __ ___ 一、选择题(本题共4小 题,每小题3分,满分12分,每小题给出四个选项,请将正确答案填在题后的括号内) 1.若),(y x f 在),(00y x 处可微,则在),(00y x 点下列结论中不一定成立的是( C ) )(A 连续 )(B 偏导数存在 )(C 偏导数连续 )(D 切平面存在 2. 直线 011523 1 2325=--+-=-+=-z y x z y x 与平面的位置关系是( D ) )(A 平行但不在平面上 )(B 在平面上 )(C 垂直 )(D 斜交 3. 若曲面∑:2 2 2 2 a z y x =++,则2 ()x y z dS ∑ ++??ò=( C ) 4.设)11ln()1(n u n n + -=,则级数( B ) )(A ∑∞ =1n n u 与∑∞ =12n n u 都收敛 )(B ∑∞=1 n n u 收敛而∑∞ =1 2 n n u 发散 )(C ∑∞ =1 n n u 与∑∞ =1 2 n n u 都发散 )(D ∑∞ =1 n n u 发散而∑∞ =1 2 n n u 收敛 二、填空题(本题共4小题,每小题3分,满分12分,请将正确答案填在题后的横线上) 1.已知矢量,a b r r 的模分别为() 2 ||2,||a b a b a b ==?=?=r r r r r r 及 2 __ 。 ⒉ 已知=+ =)1,1(),1ln(dz y x z 则 ()12 dx dy - 。 3.幂级数1 (1)2n n n x n ∞ =-?∑的收敛域是 [)1,3- ____ 。 4.设函数???≤<+≤<--=π πx x x x f 0,10,1)(2 ,则其以π2为周期的傅里叶级数在点π=x 处收敛于 _ 。 三、计算题(本题共4小题,每小题7分,满分28分,写出必要的解题过程)

北京理工大学汇编语言练习题及答案1

一、 1.请任意输入一个字符串,将该串倒序后在屏幕上显示。 DATAS SEGMENT BUF DB 40 DB ? DB 40 DUP(0) ACC DB 0 CHAR DB ? DATAS ENDS STACKS SEGMENT DB 100 DUP(0) STACKS ENDS CODES SEGMENT ASSUME CS:CODES,DS:DATAS,SS:STACKS START: MOV AX,DATAS MOV DS,AX MOV AH,0AH LEA DX,BUF INT 21H ; 输入字符串 MOV AH,0EH MOV AL,0DH INT 10H MOV AL,0AH INT 10H ;回车换行 LEA SI,BUF MOV AL,[SI+1] MOV AH,0 MOV ACC,AL INC SI ADD SI,AX L1: MOV DL,[SI] MOV AH,02H INT 21H DEC SI DEC ACC CMP ACC,0 JNZ L1 MOV AH,4CH INT 21H CODES ENDS END START 2.请任意输入一个字符串,统计其中空格和A的个数,并将结果显示在屏幕上。 DATA SEGMENT BUF DB 100 DB ? DB 100 DUP(?) CHAR DB 0 ACC DB 0 SPACE DB 0 CHARA DB 0 DATA ENDS STACK SEGMENT DB 100 DUP(0) STACK ENDS CODE SEGMENT ASSUME DS:DATA,CS:CODE MAIN PROC FAR MOV AX,DA TA MOV DS,AX LEA DX,BUF MOV AH,0AH INT 21H ;输入 字符串 MOV AH,02H MOV DL,0DH INT 21H MOV DL,0AH INT 21H LEA SI,BUF MOV AL,[SI+1] MOV ACC,AL MOV SI,2 L: CMP BUF[SI],' ' JZ LSPACE CMP BUF[SI],'A' JZ LCHARA INC SI DEC ACC CMP ACC,0 JZ SHOW JMP L LSPACE:

北京理工大学网络教室C语言编程题库及答案(绝对经典)

1.Hello world. 输入:无 输出:Hello world. 程序: #include int main() { printf("Hello world.\n"); return 0; } 2.Welcome to Beijing. 程序: #include int main() { printf("Welcome\n"); printf("to\n"); printf("Beijing.\n"); return 0; } 3. 求A+B 输入:整数1 整数2 输出:整数1+整数2=和

程序: #include int main() { int a,b; scanf("%d",&a); scanf("%d",&b); printf("%d+%d=%d\n",a,b,a+b); return 0; } 4. 求x 的3次方 输入:一个整数。 输出:该整数的 3 次方值。 程序: #include int main() { int x; scanf("%d",&x); printf("%d\n",x*x*x); return 0; } 5. 学习打印你的第一个图形 编写一个小程序,要求输出的是4 行由*号组成的等腰三角形。

程序: #include int main() { printf(" *\n"); printf(" ***\n"); printf(" *****\n"); printf("*******\n"); return 0; } 6. 一年级的算术题 输入:接受两个整数,每个整数之间使用空格分隔。例如输入格式为:123 444 输出:分别输出按照整型数据进行+、-、*、/、* 之后的运行结果。 程序: #include int main() { int a,b; scanf("%d %d",&a,&b); printf("%d+%d=%d\n",a,b,a+b); printf("%d-%d=%d\n",a,b,a-b); printf("%d*%d=%d\n",a,b,a*b); printf("%d/%d=%d\n",a,b,a/b); printf("%d%%%d=%d\n",a,b,a%b); return 0; }

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