华农汇编期末试卷test1(有答案版)

合集下载

华中农业大学高等数学期末考试试卷(含答案)

华中农业大学高等数学期末考试试卷(含答案)

华中农业大学高等数学期末考试试卷(含答案)
一、高等数学选择题
1.函数的定义域为.
A、正确
B、不正确
【答案】B
2.设函数,则.
A、正确
B、不正确
【答案】B
3.函数的图形如图示,则函数
( ).
A、有一个极大值
B、有两个极大值
C、有四个极大值
D、没有极大值
【答案】A
4.不定积分.
A、
B、
C、
D、
【答案】A
5.函数是微分方程的解.
A、正确
B、不正确
【答案】B
6.设函数,则().A、
B、
C、
D、
【答案】A
7.极限.
A、正确
B、不正确
【答案】A
8.不定积分 ( ).
A、
B、
C、
D、
【答案】C
9.极限.
A、正确
B、不正确
【答案】A
10.是偶函数.
A、正确
B、不正确
【答案】B
11.设,则.
A、正确
B、不正确
【答案】A
12.函数的图形如图示,则是函数的
( ).
A、最大值点
B、极大值点
C、极小值点也是最小值点
D、极小值点但非最小值点
【答案】C
13..
A、正确
B、不正确
【答案】B
14.设函数,则().
A、
B、
C、
D、
【答案】B
15.微分方程的通解是().A、
B、
C、
D、
【答案】C。

2020年华南农业大学期末考试试卷(A卷)

2020年华南农业大学期末考试试卷(A卷)

华南农业大学期末考试试卷(A卷/B卷)2020学年第一学期考试科目:大学语文考试类型:(闭卷/开卷)考试考试时间:120 分钟学号姓名年级专业拟卷人:一、选择题(本大题共16小题,每小题1分,共16分)1.大学语文课程教学的主要目的是()A. 提高写作水平B.深化中学语文C.增强人文修养D.了解中国文学发展史2."生也何恩,杀之何咎"中"咎"的意思是( )A. 咎: 罪过。

B. 咎:灾祸,灾殃。

C. 咎: 怪罪,处分。

D. 咎: 怨仇。

3.张爱玲《封锁》包子上那些字的描写,是为了()A.逼真的效果而进行的细节描写。

B.在对比中营造出一种强烈讽刺的效果,让人深思。

C.表现出了吕宗桢鄙陋的一面。

D.突出包子的重要性。

4. “任何人对他都变得不复存在,连笼子里那对他至关重要的钟表发出的响声也充耳不闻”(《饥饿艺术家》)表现了艺术家对艺术()的态度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. 见到母亲,高兴得把书本撕烂扔向空中。

B. 见到母亲,高兴得把以前认识的人全忘了。

C. 与母爱相比,我在学校学到的那点知识太微不足道了。

D. 与母亲相比,所有名人名著都是秋风中的残叶。

11.《小城三月》中的翠姨想嫁一个()A.自己喜欢的男人B.有钱的男人C.有地位的男人D.有事业心的男人12.《摩诃摩耶》中主人公的悲剧源于以下哪个宗教的习俗()A.佛教B.基督教C.婆罗门教D.伊斯兰教13. 《我梦见重又归去》“环顾四面,我发觉/片片飞花呀全是冰雪/此地是一片雪国/我头上也白发如雪”,反映了作者( )A. 认为现实与梦境一样飘着雪花,感到愉悦。

20082009华南农业大学期末考试试卷[1]

20082009华南农业大学期末考试试卷[1]

华南农业大学期末考试试卷(A卷)2008-2009学年第一学期考试科目:微观经济学考试类型:(闭卷)考试时间:120 分钟学号姓名年级专业一、单项选择题(每题0.5分,共15分,将正确答案填入答题纸上)1.看不见的手一般指下列哪种机制(A )A、机会成本;B、政府;C、利润;D、价格。

2.经济学中的“稀缺性”是指(B )A 世界上大多数人生活在贫困中;B、相对于需求而言,资源总是不足的;C用资源必须考虑下一代; D、世界上的资源终将被人类消耗光。

3.如果x与y商品是互补品,x价格下降,将使y(B )A、需求量增加;B、需求增加;C、需求量减少;D、需求减少。

4.冰棒的需求价格弹性(A )药品的需求价格弹性A、大于;B、小于;C、等于;D、大于或等于。

5.下列命题中哪个是规范经济学的命题?( D)A.征税对中等收入家庭是不公平的;B. 1982年8月政府把贴现率降到10%;C. 1981年失业率超过9%;D.社会保险税的课税依据现已超过30000美元。

6.如果消费者的预算收入为50美元,商品X和Y的价格均为5美元,消费者打算购买6单位X和4单位Y,商品X、Y的边际效用分别为25和20,那么,要达到效用最大化,他应该(,A)A、按原计划购买;B、减少X和Y的购买量;C、增加X、Y的购买量;D、增加X的同时减少Y的量。

7.消费者预算线发生平移时,连接消费者均衡点的曲线称为( C )A 、需求曲线;B 、价格-消费曲线;C 、收入-消费曲线;D 、恩格尔曲线。

8.当某人面对一张彩票时,如果是212111UW P W PU W P PW U )()(])([-+〈-+,则意味着这个人是属于下列哪一类人 ( B )A .风险回避者;B .风险喜爱者;C .风险中立者;D .都不是。

9.如果某厂商增加一单位劳动使用量能够减少三单位资本,而仍生产同样的产出量,则边际技术替代率MRTS LK 为:( B ) A 、 1/3 ; B 、 3; C 、 -3; D 、 6。

华南农业大学期末考试试卷及参考答案

华南农业大学期末考试试卷及参考答案

华南农业大学期末考试试卷及参考答案2011学年第一学期考试科目:数据结构考试类型:(闭卷) 考试时间: 120 分钟班级学号姓名考试须知:1.答案必须写在“答题卡”上,写在试卷上不得分。

2.考试结束时,只回收答题卡,不回收试卷。

3. 必须在答题卡上正确填写班级、学号、姓名等内容,否则没有考试成绩一、选择题(每小题2分,共20分)1、有n个顶点的有向图最多有( )条边。

BA.n B.n(n—1) C n(n+1) D. n22、任何一个无向连通图(B )最小生成树。

A.只有一棵B.有一棵或多棵C.一定有多棵D.可能不存在3、如果从无向图的任一顶点出发进行一次深度优先遍历即可访问所有顶点,则该图一定是( B)。

A.完全图B. 连通图C. 有回路D. 一棵树4、有一个有序表位{1,3,9,12,32,41,45,62,75,77,82,95,99},当采用二分查找法查找关键字为82的元素时,(C )次比较后查找成功。

A.1 B.2 C.4 D.85、对一组数据(84,47,25,15,21)排序,数据的排列次序在排序的过程中的变化为:(1)84 47 25 15 21 (2)15 47 25 84 21 (3)15 21 25 84 47 (4) 15 21 25 47 84则采用的排序是( )。

AA. 选择排序B. 冒泡排序C. 快速排序D. 插入排序6、数据序列(8,9,10,4,5,6,20,1,2)只能是下列排序算法中的( )的两趟排序后的结果。

CA.选择排序B.冒泡排序C.插入排序D.堆排序7、在平衡二叉树中插入一个结点后造成了不平衡,设最低的不平衡结点为A,并已知插入结点后A 的左孩子的平衡因子为0,右孩子的平衡因子为1,则应作( ) 型调整以使其平衡。

CA.LL B.LR C.RL D.RR8、快速排序算法的时间复杂性为O(nlog2n),但在( )情况下,该算法效率近似为O (n2)。

华南农业大学期末考试试卷(A卷)(标准答案)

华南农业大学期末考试试卷(A卷)(标准答案)
3
规律:控制不同性状的非等位基因分布在非同源染色体上,在减数分裂形成配子时非同源染 色体之间发生随机组合,因而这些非等位基因可以自由组合。(2.5 分)
3. 测量矮脚鸡和芦花鸡以及它们杂种的体重,得到下列的平均体重和表型方差(见下表), 请计算体重的广义和狭义遗传率。
矮脚鸡 芦花鸡 F1 F2 B1B B2B
华南农业大学期末考试试卷(A 卷)(标准答案)
2007 学年第一学期 考试科目: 遗传学
学号
考试类型:(闭卷) 姓名
考试时间: 120 分钟 年级专业
题号





总分
得分
评阅人
一、名词解释(每个 2 分,共 20 分) 测交 是指被测验的个体与隐性纯合体间的杂交(1.5 分)。根据测交子代所表现的表型种 类和比例,可以确定被测验个体的基因型(0.5 分)。
度,可确定物种分歧的大致时间。(√)
四、简答题(每题 5 分,共 30 分)
1. 写出下列专业术语的英文名称
(1)等位基因; (2)染色体组; (3)连锁;
allele;
genome;
linkage;
(4)遗传; heredity;
(5)表型 phenotype
2. 分离规律及自由组合规律的遗传实质是什么? 答:分离规律:控制相对性状的一对等位基因位于同源染色体上,在减数分裂形成配子时两 条同源染色体被分配到不同的细胞中,其上的等位基因也随之发生分离。(2.5 分)自由组合
平均(斤) 方差
1.4
0.1
6.6
0.5
3.4
0.3
3.6
1.2
2.5
0.8
4.8
1.0

华农外教期末考试题目(附参考解答)

华农外教期末考试题目(附参考解答)

1.Do you think we should worry about the environment?I think we should not worry too much about the environment, but we are supposed to care about it. It just like our body, we care about our health, many people will run every evening, they go to the gym to become fit and strong, they eat vegetable and fruit for health, andthe problem of environment is big and complex, it contains many aspects, but it’s also small and simple, because it just like the body of every one of us, as long as we care about the environment like we care about our health, we pay more attention to it, do something every day, like use less one-off items, don’t litter the battery and so on. We all know how to do, and we just need more attention, it’s not about worry, but about love and care2.What causes poverty?For a person, I think the reason is they are lazy, they can’t insist on what they want, and they are coward, when the opportunity comes, they always sit in there and wait, but did not try to seize it, which lead to the absence of their ability, the poverty in mind result in the poverty in economy. For the whole society or a country, I think the reason is complex, and some are historical reason, take China for example, before China’s founding, the world war and anti-Japanese war make China lost many people and money, and after China’s founding, the cultural revolution make China’ economy go backwards at least 20 years. Also the lack of welfare and education is important reason, without the welfare, the poor guys lose the life guarantee, and many poor children don’t have a equal opportunity to receive education, and it becomes a bad cycle, and make the poverty more serious.3.Do you think women are discriminated against?To some extent, yes. Take China for example, many parents prefer to have a boy but not girl, because they think a married daughter is just like water has been poured and she doesn’t belongs to her parents any more. And during work, some company will discriminate the pregnant women,They might miss the opportunity or be replaced for they gave birth to a child and have a holiday. And sexual harassment is also a discrimination, it’s a disrespect to them. But I think maybe these thing still happen but our awareness are changing andman y people are working hard for it, like Emma Watson’s speech called “HeForS he”, and everything is getting better.4.What do you think about the one child policy?In my opinion, Itotally support this policy. Maybe giving birth to a child is a right to the parents, but considering the China nation condition, currently there are 1.4 billion people in China, and if the country don’t control the growth of population, it will become horrible and bring the environment more pressure, the problem of society will be amplified, food and other resource will be limited, so I think the one child policy is indispensable for now, but it’s just a temporary policy, along with social development, the policy will be change.5.Are illegal drugs a problem in China?Yes.the problem is st ill serious. And it’s still serious, one of the reason is that China neighbor the Golden Triangle, which is main opium producing area in the world, so many illegal drugs will flow into China. Furthermore, it’s new thing for youth and attract them, once they take drugs, it’s really hard for them to get rid of. Recently some news is also reported that some stars took drugs and caught like Jackie Chen’s son. And the benefit of selling drugs is attractive, making them a millionaire for just several month, so many people prefer to take that risk to sell drug and it’s hard ban thoroughly. So it’s still a serious problem for China.6.What can we do about pollution?About the pollution, there are still many things we can do. About 4 years ago, the classification garbage can was set on the street and in the school In China. But for now, these garbage can has lost its function it supposed to be. Classification is just a simple behavior, but it can recycle about 30% garbage, it’s what we can do. Somebody think that the pollution mainly cause by industry, but actually, according to a report, the Domestic pollution account for about 59% of total amount of pollution. So saving water and food, avoid using the one-off items to reduce waste is also important for environment. And talking about industry, we can also do something, when we find some factories discharge the polluted water or harmful gas, we can make a call to report to relevant department, it’s simple, but it’s effective.7.Should the government help poor people?Of course yes. Because I think many people become wealthy doesn’t mean the society do so, only when the poor people have more money to keep their life, our society can become prosperous. Besides, gap between wealthy and poor is still serious, which will cause the dissatisfaction of poor people and harm to social stability. So considering the social harmony, the government are supposed to help poor people.8.Should rich people help poor people?Yes. In my opinion, whether China or the west, helping each other is advocated. it’s a moral excellence. And obviously, the rich people have more money and influence power, they have more capacity to help the poor guys, they can use their money and power to create more chance for poor people. and maybe it’s al so a social responsibility for them, they become rich not only for their hard work but also depend on the whole society, so they are supposed to take that responsibility in return. So I think the rich people should help the poor people.9.Why are there so many wars?I think some wars happen because of the religion, but it’s very few, the most radical, important reason of war is the conflict of interest. There areno permanent friend between two countries but permanent interests. So countries need to warring to grab interests or protect interests. Take the war in Iraq as example, why the America pay a heavy price to attack Iraq, they said it’s for anti-terrorism, but maybe oil reserves in Iraq is the more important reason, so as long as the interests exist, it’s hard to stop the war.10.Should rich countries help poor ones?Yes. In my opinion, the rich countries do need to offer some help to the poor ones. To some extent, rich countries should take that international responsibility, they are not only help the country but also help millions of poor people, it’s humanitarianism. But as an old saying goes,a country does not have permanent friends, only permanent interests. And the help is helpful for two countries to build a closer relationship, which is also a chance for the rich countries to develop its foreigntrade. And this relationship also create more communication between two countries and make the common prosperity.11.What do you think about the death penalty for serious crimes?In my opinion, death penalty should be abolished because I think the penalty was to stop the crime and reduce the similar crime as a warn, so putting in prison is enough for these purpose.And death penalty is to kill a people, no matter he is criminal or normal person, life is precious and nobody can take one person’s life, and it’s also a crime too. besides, it’s hard to avoid that the court will also has the wrong judgement and some people are wronged, once the death penalty was executed, it can’t be redeem any more. So I totally hope to the death penalty can be abolished.12.What do you think about beggars?In my opinion, if the beggar has the ability to earn his life, he should not to choose to beg to earn his living. And people are not supposed to give them money because it won’t really help them but make them rely more on people’s giving. But if the beggar can’t earn his living by his own for he is disabled or too old to work, I will give money to them, and I will feel pity for them and feel sad for our country because it mean the country still lack the guarantee for people’s fundamental life, which force them to beg, so in this respect, if we hope the beggar would lessen, the country need to do more.。

华南农业大学期末考试试卷1

华南农业大学期末考试试卷1

华南农业大学期末考试试卷( A 卷)一、填空题(20分,每空0.5 分)1、一种植物的完整的拉丁学名是由属名、种加词和命名人三部分组成。

2、苏铁科中着生胚珠的地方称大孢子叶;银杏科中着生胚珠的地方称珠座;松科(杉科)中着生胚珠的地方称珠鳞。

3、在竹亚科我们学过的属中,每节二分枝的属有刚竹属(毛竹属);地下茎为单轴型的有刚竹属(毛竹属);粉单竹的地下茎类型是合轴型(合轴丛生)。

4、在我们学过的植物中,台湾相思等的叶退化为叶状柄;木麻黄等的叶退化为齿状轮生,且花为裸花。

5、油杉是松科植物;水松是杉科植物;竹柏是罗汉松科植物。

6、竹亚科植物的竹箨是由箨叶、箨鞘、箨耳和箨舌四部分组成。

7、树木学是研究树木的分类、生物学和生态学特性、地理分布及经济利用一门学科。

8、白兰、壳菜果(米老排)、高山榕这3种植物在枝条上有一个非常明显的共同特征,这个特征是有托叶环痕。

9、请把下列拉丁名翻译成中名:(1)松属Pinus (2)桉属Eucalyptus (3)羊蹄甲属Bauhinia(4)榕属Ficus (5)荔枝属Litch (6)王棕属Roystonea(7)含笑属Michelia (8)乌桕属Sapium10、请把下列拉丁名翻译成中名:(1)Cycas 苏铁属(2)Cinnamomum 樟属(3)Camellia (山)茶属(4)Castanopsis 锥(栲属)(5)Citrus 柑桔属(6)Cunninghamia 杉木属(7)Cupressus 柏木属(8)Caryota 鱼尾葵属11、在广东林业中常用的速生用材树种有杉木、尾叶桉等,经济林树种有油茶和板栗等。

3 二、选择题(20 分,每个选择1分)1、(山)茶属的果实类型是(B )。

A、浆果B、蒴果C、核果D、坚果2、广州市的市花是( B )。

A、木芙蓉B、木棉C、牡丹 D 、银杏3、下列植物中,花瓣顶端撕裂的是(B )。

A、白兰B、尖叶杜英C、油茶D、木棉4、下列特征中,为大戟科植物普遍具有的特征是(B )。

华农-11-12年第一学期高等数学上试卷及答案

华农-11-12年第一学期高等数学上试卷及答案

华南农业大学期末考试试卷(A 卷)2011~2012学年第1 学期 考试科目:高等数学A Ⅰ 考试类型:(闭卷)考试 考试时间: 120 分钟学号 姓名 年级专业一、填空题(本大题共5小题,每小题3分,共15分) 1.0sin 5lim2x xx→= 5/2 。

2.曲线2x xe e y -+=在点(0,1)处的曲率是 。

3.设()f x 可导,[]ln ()y f x =,则dy = 。

4.不定积分⎰=。

5.反常积分60x e dx +∞-⎰= 。

二、单项选择题(本大题共5小题,每小题3分,共15分)1.设2,01(),,12x x f x x x ⎧<≤=⎨<<⎩在点1x =处必定 ( A ) A .连续但不可导 B .连续且可导C .不连续但可导D .不连续,故不可导2.曲线y =4x =处的切线方程是( C )A .114y x =-B .112y x =+C .114y x =+ D .124y x =+ 3.下列函数在区间[1,1]-上满足罗尔定理条件的是 ( ) A .21x B .3x C .xD .211x + 4.设()f x 为连续函数,则下列等式中正确的是 ( ) A .()()f x dx f x '=⎰ B .()()df x dx f x C dx=+⎰ C .()()d f x dx f x =⎰ D .()()d f x dx f x dx =⎰5.已知()0232ax x dx -=⎰,则a = ( )A .1-B .0C .12D .1三、计算题(本大题共7小题,每小题7分,共49分)1. 求极限 ()011lim x x x e x x e →---。

2. 设函数1sin 2 ,0(), ,0 x x f x a bx x +≤⎧=⎨+>⎩在点 0x =处可导,求,a b 的值。

3. 设参数方程()1sin cos x t t y t t=-⎧⎪⎨=⎪⎩确定y 是x 的函数,求dy dx 。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

汇编语言1一、简答题1.下面程序段执行后,寄存器BX的值发生什么变化?(不考虑溢出)SAL BX,1PUSH BXMOV CL,4SAL BX,CLPOP CXSUB BX,CX答:寄存器BX的值变为原来的30倍2.对于这样的程序段:CMP AX,BXJGE NEXTXCHG AX,BXNEXT: CMP AX,CXJGE DONEXCHG AX,CXDONE: ┆试回答:①上述程序执行后,原有AX,BX,CX中最大数存放在哪个寄存器?答:AX②这三个数是带符号数还是无符号数?答:带符号数3.已知寄存器(DS)=1000H,(SS)=1110H,(BX)=100H,(BP)=100H,(SI)=0002H,(SP)=100H;内存单元中的(10100H)=12H,(10101H)=34H,(10102H)=56H,(10103H)=78H,(11200H)=0ABH,(11201H)=0CDH,(11202H)=0EFH,(11203H)=0D3H。

试说明下列各指令执行完后AX寄存器的内容。

指令 AX的内容① MOV AX,1200H ① 1200H② MOV AX,BX ② 100H③ MOV AX,[1200H] ③ CDABH④ MOV AX,[B P] ④ CDABH⑤ MOV AX,1100H[BX] ⑤ CDABH⑥ MOV AX,[BX][SI] ⑥ 7856H⑦ MOV AX,1100H[BX][SI]⑦ D3EFH⑧ POP AX⑧ CDABH4. A DB 0F8HB DB 3 DUP(?)┇LEA DI,BMOV CX,3MOV AL,ALOP:SAR AL,1MOV [DI],ALINC DILOOP LOP上述程序段运行后,从B单元开始依次存放的数据是多少?答:FCH、FEH、FFH5.执行下面的程序段后,AX和BX寄存器的内容各是多少?MOV AX,1MOV BX,23MOV SI,10XCHG AX,BXMUL SIADD BX,AX答:AX和BX寄存器的内容分别是231和230二、程序填空题下面是一个.com文件格式的程序,完成从键盘上输入一个4位以内的16进制数,并以10进制形式显示出来。

请在标号处填上缺少的指令。

HEX2DEC SEGMENTORG 100HASSUME CS:HEX2DEC,SS:HEX2DEC,DS:HEX2DEC,ES:HEX2DECMAIN PROC NEARXOR BX,BXMOV CH,4L1: MOV AH,1_____(1)_______INT 21HCMP AL,0DHJE DISP10CMP AL,30HJB L1______(2)_______CMP AL,39HJBE L2CMP AL,41HJB L1CMP AL,46HJBE L2CMP AL,61HJB L1CMP AL,66HJA L1SUB AL,20HL2: SUB AL,30HCMP AL,9JBE L3SUB AL,7L3: MOV CL,4SHL BX,CLXOR AH,AHADD BX,AX____(3)_________ DEC CHJNZ L1DISP10: LEA DX,CRLFMOV AH,9INT 21HOR BX,BXJNS L4MOV DL,2DHMOV AH,2INT 21HNEG BXL4: XOR CX,CXMOV AX,BXL5: XOR DX,DX____(4)________ MOV SI,10DIV SIPUSH DXINC CXOR AX,AXJZ L6JMP L5L6: POP DX____(5)___________ADD DL,30HMOV AH,2INT 21HLOOP L6INT 20HCRLF DB 0DH,0AH,24HMAIN ENDPHEX2DEC ENDSEND MAIN三、阅读程序1. 仔细阅读下面子程序,说明该子程序的功能。

DATA SEGMENTSOURCE_BUFFER DB 60 DUP(‘a’) DATA ENDSEXTRA SEGMENTDEST_BUFFER DB 60 DUP(?)EXTRA ENDSSTART PROC NEARMOV AX,DATAMOV DS,AXMOV AX,EXTRAMOV ES,AXLEA SI,SOURCE_BUFFERLEA DI,DEST_BUFFERCLDMOV CX,60REP MOVSBRETSTART ENDP答:该子程序的功能是把SOURCE_BUFFER的60个a存进DEST_BUFFER中2. 仔细阅读下面子程序,说明该程序的功能。

MAXNO EQU 41DSEG SEGMENTMESG1 DB 'INPUT A STRING:$'MESG2 DB 'ITS REVERSE IS:$'BUF DB MAXNO,?,MAXNO DUP(?)DSEG ENDSCSEG SEGMENTASSUME CS:CSEG,DS:DSEGSTART: MOV AX,DSEGMOV DS,AXMOV DX,OFFSET MESG1MOV AH,9INT 21HMOV DX,OFFSET BUFMOV AH,0AHINT 21HMOV AL,BUF+1MOV AH,0LEA DI,BUF+2MOV SI,DIADD SI,AXMOV BYTE PTR [SI],'$'MOV DL,0DHMOV AH,2INT 21HMOV DL,0AHMOV AH,2INT 21HMOV DX,OFFSET MESG2MOV AH,9INT 21HLEA DX,BUF+2MOV AH,9INT 21HMOV AX,4C00HINT 21HCSEG ENDSEND START答:该子程序的功能是输入一串字符,换行后输出3.阅读如下子程序,回答其后问题。

DATA SEGMENTBUF DB ‘ER39*5867JgeewFGHYUO9385’C = $-BUFDATA ENDSSTART PROC NEARMOV AX,DATAMOV DS,AXMOV CX,CLEA SI,BUFL:MOV AL,[SI]CMP AL,61HJB NEXTCMP AL,7AHJA NEXTSUB AL,20HMOV [SI],ALNEXT:INC SILOOP LRETSTART ENDP请回答:(1)该子程序完成什么功能?答:该子程序的功能是把存在BUF中的小写字母转换为大写字母,其他不变(2)该子程序执行完后,BUF缓冲区的内容是什么?答:BUF缓冲区的内容是ER39*5867JGEEWFGHYU093854.下面是某程序的汇编列表文件,请将程序执行过程中堆栈最满时每个单元的内容填入下表。

假设程序执行时PSP段地址为0F80H。

地址位移量机器码汇编语言指令0000 STACK SEGMENT STACK0000 0100[ DW 100H DUP(?)]0200 TOP LABEL WORD0200 STACK ENDS0000 CODE SEGMENTASSUME CS:CODE,SS:STACK0000 MAIN PROC FAR0000 B8 ---- R MOV AX,STACK0003 8E D0 MOV SS,AX0005 BC 0200 R MOV SP,OFFSET TOP0008 1E PUSH DS0009 33 C0 XOR AX,AX000B 50 PUSH AX000C E8 0010 R CALL P1000F CB RET0010 MAIN ENDP0010 P1 PROC NEAR0010 E8 0017 R CALL P20013 E8 001E R CALL P30016 C3 RET0017 P1 ENDP0017 P2 PROC NEAR0017 E8 001E R CALL P3001A E8 001F R CALL P4001D C3 RET001E P2 ENDP001E P3 PROC NEAR001E C3 RET001F P3 ENDP001F P4 PROC NEAR001F E8 001E R CALL P30022 C3 RET0023 P4 ENDP0023 CODE ENDSEND MAIN(01F4 )(01F5)( 01F6)( 01F8)(01F9)(01FA )(01FB )(01FC )( 01FD)(01FE)(01FF)SP四、程序设计题1.已知变量X的值为2767,请编程序统计变量X中的二进制值中有多少个1,并记入ONE变量中。

.MODEL SMALL.DATAX DW 2756ONE DB 0.CODESTART:MOV AX,@DATAMOV DS,AXMOV AX,XLP1:OR AX,AXJZ EXITJNS NEXTINC ONENEXT:SHL AX,1JMP LP1EXIT:MOV DL,ONEADD DL,30HMOV AH,2INT 21HMOV AH,4CHINT 21HEND START2.从键盘上输入一系列以$为结束符的字符串,然后对其中的非数字字符计数,并显示出计数结果。

.MODEL SMALL.DATA.CODESTART:MOV AX,@DATAMOV DS,AXMOV DX,0LP1:MOV AH,1INT 21HCMP AL,'$'JE EXITCMP AL,30HJB LP1CMP AL,39HJA LP1INC DLJMP LP1EXIT:ADD DL,30HMOV AH,2MOV AH,4CHINT 21HEND START3.试编写一程序,要求比较两个字符串STRING1和STRING2所含字符是否相同,若相同则显示“MATCH”,若不相同则显示“NO MATCH”。

.MODEL SMALL.DATASTRING1 DB'THIS'COUNT1 DW $-STRING1STRING2 DB'THIS'COUNT2 DW $-STRING2SIM DB'MATCH','$'DIFF DB'NO MATCH',"$".CODESTART:MOV AX,@DATAMOV DS,AXMOV DX,0LEA SI,STRING1LEA DI,STRING2MOV CX,COUNT1CMP CX,COUNT2JNE NOL1:MOV AL,[SI]CMP AL,[DI]JNE NOINC SIINC DILOOP L1LEA DX,SIMMOV AH,9INT 21HJMP EXITNO:LEA DX,DIFFMOV AH,9INT 21HEXIT:MOV AH,4CHEND START4.编写一子程序SKIPLINES,完成输出空行的功能。

相关文档
最新文档