文档库 最新最全的文档下载
当前位置:文档库 › 改错题答案

改错题答案

改错题答案
改错题答案

一.

I hardly remember my grandmother. She used to holding me on her knees and sing old songs.

I was only

hold

four when she passes away. She is just a distant memory for me now.

passed

I remember my grandfather very much. He was tall, with broad shoulder and a beard that turned from black

well / clearly shoulders

toward gray over the years. He had a deep voice, which set himself apart from others in our small town,∧he was

to / into him

\

and

strong and powerful. In a fact, he even scared my classmates away during they came over to play or do

when

homework with me. However, he was the gentlest man I have never known.

ever

二.

Dear Diary,

Here I am in the middle of a city, 350 miles far away from our farmhouse. Do you want to know why

we move last week? Dad lost his job, and as Mom explained, “He was lucky to find other one.” His

moved another new job meant I had to say goodbye to my classmate, my school or just everything else I love in the

classmates and

world. To make matters bad, now I have to share a room with my younger sister, Maggie. Tomorrow

worse

is ∧first day of school. I am awfully tiring, but I know I will never fall sleep.

the / my tired asleep

Good night and remember, you, dear diary, is my only souvenir from my past life and

my only friend.

are

Yours,

Christine was just a girl in one of my class. I never knew much about

Her except for that she was strang . she didn’t talk many .her hair was black

much

and purple, and she worn black sports shoes and a black sweater ,although in the

wore even

summer .she was ,infact, rather attractively, and she never seemed ^care what

attractively to

the rest if us thought about her .like the rest of my classmate ,I didn’t really

classmates

want to get closest to her . it was only when we did their chemistry projiect

close our

together that I begin to uanderstand why christine dressed the way she did .

begin

76.【答案】go----went 77.【答案】ours----our 78.【答案】去掉we前的so

79.【答案】before----after 80.【答案】impatiently---- impatient

81.【答案】and----but 82.【答案】were----was 83.【答案】fish前加a

84.【答案】minute----minutes 85.【答案】feel----feeling

My father and I stayed at the South Lake Hotel for a week when we

visit(visited) Beijing last month. It is in the downtown area, but(and\so)it is easy to go to anywhere

from the hotel by public transport.

We lived in a comfortably(comfortable)double-room with a big bath. What I liked best were (was)the free high-speed Internet connection in the room. I checked my email messages every day. I also shared for (with)my friends many photos taking(taken) in Beijing. The food was wonderful with reasonable prices, and we enjoyed several local dish. (dishes)

It is such∧(a)great hotel that I would recommend it to any friend of me(mine) who is going to Beijing.

Last Sunday morning,when l was having a walk in the park near my home,I came across a crew make a new film with one of my favourite actor.I didn’t have my camera

making actors

with me at that time,but I rushed back home to get.Unfortunately,by the time I got

so/and it

back,they have finished the scene and the actor couldn’t be seen everywhere.I was really

had anywhere

disappointing and about to leave when he walked out a building.He was right there in

disappointed of

the front of me! I couldn’t believe my luck--not only did I had my photo taken with him,

have

but he signed his name on my shirt!

1.troubles----trouble

2.with—for

3.but—so

4.a—﹨a

5.them—it

6.wake—waking

7.properly—proper

8.the first—∧to

9.pleasing—pleased

10.that—it

62. “difficulty”改为“difficult” 63. “hardly”改为“h ard”

64. “asking”改为“asked” 65. “to copy”改为“copy”

66. “think”改为“thinking” 67 “all”改为“both”

68.7. “same”改为“the same” 69.8 “tests”改为“test”

70.9. “so”改为“or” 71.10. “does”改为“did”

十.

短文改错

66. Mothers’—Mother’s 67. your改为you 68. thank改为thanks 69. 去掉on 70. by改为for 71. teach改为teaching 72. had改为have 73. may后加not 74. Whenever改为Wherever 75. Hope改为Wish

应用文改错题及答案

2018年全国统一高考生物试卷(新课标Ⅱ) 一、选择题:本题共6小题,每小题6分,共36分,在每小题给出的四个选项中,只有一项是符合题目要求的。 1.(6.00分)下列关于人体中蛋白质功能的叙述,错误的是() A.浆细胞产生的抗体可结合相应的病毒抗原 B.肌细胞中的某些蛋白质参与肌肉收缩的过程 C.蛋白质结合Mg2+形成的血红蛋白参与O2运输 D.细胞核中某些蛋白质是染色体的重要组成成分 2.(6.00分)下列有关物质跨膜运输的叙述,正确的是() A.巨噬细胞摄入病原体的过程属于协助扩散 B.固醇类激素进入靶细胞的过程属于主动运输 C.神经细胞受到刺激时产生的Na+内流属于被动运输 D.护肤品中的甘油进入皮肤细胞的过程属于主动运输 3.(6.00分)下列有关人体内激素的叙述,正确的是() A.运动时,肾上腺素水平升高,可使心率加快,说明激素是高能化合物B.饥饿时,胰高血糖素水平升高,促进糖原分解,说明激素具有酶的催化活性C.进食后,胰岛素水平升高,其既可加速糖原合成,也可作为细胞的结构组分D.青春期,性激素水平升高,随体液到达靶细胞,与受体结合可促进机体发育4.(6.00分)有些作物的种子入库前需要经过风干处理。与风干前相比,下列说法错误的是() A.风干种子中有机物的消耗减慢 B.风干种子上微生物不易生长繁殖 C.风干种子中细胞呼吸作用的强度高 D.风干种子中结合水与自由水的比值大 5.(6.00分)下列关于病毒的叙述,错误的是() A.从烟草花叶病毒中可以提取到RNA B.T2噬菌体可感染肺炎双球菌导致其裂解 C.HIV可引起人的获得性免疫缺陷综合征

D.阻断病毒的传播可降低其所致疾病的发病率 6.(6.00分)在致癌因子的作用下,正常动物细胞可转变为癌细胞。有关癌细胞特点的叙述错误的是() A.细胞中可能发生单一基因突变,细胞间黏着性增加 B.细胞中可能发生多个基因突变,细胞的形态发生变化 C.细胞中的染色体可能受到损伤,细胞的增殖失去控制 D.细胞中遗传物质可能受到损伤,细胞表面的糖蛋白减少 必考题: 7.(8.00分)为研究垂体对机体生长发育的作用,某同学用垂体切除法进行实验。在实验过程中,用幼龄大鼠为材料,以体重变化作为生长发育的检测指标。问答下列问题: (1)请完善下面的实验步骤 ①将若干只大鼠随机分为A、B两组后进行处理,A组(对照组)的处理是;B组的处理是 ②将上述两组大鼠置于相同的适宜条件下饲养。 ③。 ④对所得数据进行统计处理与分析。 (2)实验结果与分析 B组大鼠生长发育的状况不如A组,出现这种差异的原因是由于B组的处理使大鼠缺失了来源于垂体的激素和激素。 8.(8.00分)为了研究某种树木树冠上下层叶片光合作用的特性,某同学选取来自树冠不同层的A、B两种叶片,分別测定其净光合速率,结果如图所示。据图回答问题:

计算机程序改错题,及答案

11 *程序名:TEST.prg *检索选修课程门数等于3门或3门以上,每门课程成绩大于或等于70分的每个学生的 *学号,姓名,性别,平均成绩,最低分和选课门数,并将结果存储到表NEW_TEST中. *以下程序有三处错误,请改正 OPEN DA TABASE SDB SELECT STUDENT.学号,姓名,性别,A VG(成绩) 平均成绩,MIN(成绩) 最低分,COUNT(*) 选课门数; FROM STUDENT,SC; WHere STUDENT.学号= SC.学号AND 成绩>= 70 ; &&**********Error********** GROUP BY STUDENT.学号HA VING count(课程号) >= 3; &&**********Error********** inTO table NEW_TEST &&**********Error********** CLOSE ALL 9 *程序名:dbtest3.prg *定义一个视图VS1, *检索选课门数是3门以上的每个学生的学号、姓名、平均成绩、最低分、选课门数和院系编号, *并按平均成绩降序排序. *以下程序有三处错误,请改正 SET TALK OFF SET SAFETY OFF open DATABASE SDB &&****Error***修改本行的语法错误,不许注释掉本行或删除本行 CREATE VIEW VS1 SELECT STUDENT2.学号, 姓名, A VG(成绩) 平均成绩, MIN(成绩) 最低分, COUNT(*) 选课门数, 院系编号; FROM STUDENT2, sc; &&*************Error************* WHERE STUDENT2.学号= SC.学号; GROUP BY SC.学号HA VING COUNT(课程号) > 3; ORDER BY 平均成绩desc &&*************Error************* CLOSE DATABASE RETURN i=2 create table four(结果I) do while i<=1000 if i%3=0 insert into four values(i) &&错误语句请修改 endif

计算机专业模拟试卷(程序填空和程序改错)

一、程序填空 1、有学生表ST,其中“编号”(N,2,0) 字段值从1开始连续排列。以下程序欲 按编号1,9,17,25……的规律抽取学 生参加比赛,并在屏幕上显示参赛学生 的编号,请填空。 USE ST DO WHILE NOT EOF() IF MOD__________ ??编号 ENDIF SKIP ENDDO 2、通过键盘输入读者的借书证号,在“读 者”表和“借阅”表中查找该读者及借 书的有关信息。 OPEN DATABASE BOOKS DO WHILE ___________ ACCEPT”请输入借书证号:” TO ZH SELECT * FROM 读者,借阅WHERE 读者.借书证号=借阅.借书证号AND ; 读者.借书证号=ZH WAIT“继续查询(Y/N)?”TO YN IF UPPER(Y/N)<>“Y” _______________________ ENDIF ENDDO _______________________ 3、将“借阅”表中借书日期超过一年且还 没有归还的记录的“标记”字段填充“*”。USE 借阅 DO WHILE _________ IF 还书日期={/} AND DA TE()—借书日期>365 REPLACE ___________ ENDIF SKIP ENDDO USE RETURN 4、一个自定义函数FX,计算F(X) =EX+3X+10的值,并编写一个主程序调 用FX函数,分别计算变量X由5到10 (步长为1)的函数值 *FX.PRG FOR I=5 TO 10 ?“X=”,I,“F(X)=”,_________ NEXT RETURN FUNCTION FX(X) ________________ RETURN F 5、下列程序根据输入的学生成绩,来判断 学生成绩等级,其中成绩大于或等于90分 的为优秀,75-90的为良好,60-74为及格, 小于60分的为不及格,请正确补充程序运 行。 Clear Set talk off ____________(“请输入成绩:”) to cj Do case Case cj<60 Dj=”不及格” Case cj<75 Dj=”及格” Case cj<90 Dj=”良好” ____________ Dj=”优秀” Endcase ? Dj Set talk on 6、设表STU.DBF中有“学号、姓名、性别、 出生日期、班级”等字段,程序完成根据姓 名进行的查询: Set talk off Use stu Store space(6) to xm Index on 学号to xh accept “输入姓名:” to xm locate for 姓名=xm display else ?“查无此人” Endif Wait “继续吗?”to yn If upper(yn)=”N” Exit Else Loop Endif Enddo Use Set talk off 7、请阅读下列判断一个自然数是否为质数 的程序,并将程序填空完整. Set talk off Input”请输入一个大于1的自然数:” to n K=0 &&K的值为0表示所输入的自然数是 质数, 为1表示不是质数 j=2 Do while j

高中英语改错题含答案12篇

高中英语改错练习题含答案 1 A shopkeeper once found that a bag money 56._______ had been stolen from his shop.He went to the 57._______ judge(法官)and tell him about his loss(损失).58._______ The judge ordered all people of the shop 59._______ to come before him.He took a number of the 60._______ sticks of equal length(长度)or gave one stick 61._______ to each person.Then he said,“Come after me 62._______ again tomorrow.I’ll then know which of you are 63._______ the thief because the stick given to a thief 64._______ will be one inch longer than the other.” 65._______ 2 Miss Evans taught physics in school in London.Last month 56._____she was explaining to one of her class about sound ,and 57._____ she decide to test them to see how successful she had 58._____been in her work.She said to them,“Now I has a sister 59._____ in Washington.If I was calling her by the phone,and 60._____you were on the other side of the street.Who would 61._____hear me first,my sister and you?And why?” 62._____A clever boy at once answered,“You sister,Miss 63._____Evans,because the electricity travels much faster than sound 64._____waves.” “Very well,” Miss Evans praised.65._____ 3 It is interested to visit another country,but sometimes 56.___ there ar e some questions when we don’t know the language very 57.___well.It may be difficult to talk about the people there.We may 58.___ not know how to use the telephone in the country which are 59.___visiting.We may not know what to buy the things we need.60.___ In a strange country we may not know where to eat and what 61.___ to order in a restaurant.It is not easy to decide how many 62.___money to tip(付小费)waiters or taxi drivers.When we are 63.___helpless,we may not know how to ask help.64.___After a short time later,however,we learn what to do 65.___and what to say.We learn to enjoy life in another country,and then we may be sorry to leave both the place and the people. 4 Long long ago,people had gather leaves and 56._____ fruit of plants to eat with.They didn’t know how 57._____ to plant crops or how to keep animals for their 58._____

程序改错基本题

程序改错 一、下面每个程序的划线处有语法或逻辑错误,请找出并改正,使其得到符合题意的执行结果。 1.求1?2?3?4? ?n main() { long int sum; int n,i=1; scanf("%d",n); printf(“\n”); while(ia[j]) { max=a[j]; m=j; } printf(“下标:%d\n最大值:%d”, j, max) } *3. 求3+4 int a=3,b=4; main() { int a,c; c=a+b; printf(“c=%d”); } 4.用一个函数求两个数之和。 sum(x,y) { float z; z=x+y; return; }

main() { float a,b; int c; scanf("%f,%f",&a,&b); c=sum(a,b); printf("\nSum is %f",sum); } 5.用指针作函数参数,对输入的两个整数按大小顺序输出。 swap(int *p1,*p2) { int *p; *p=*p1;*p1=*p2;*p2=*p; } main() { int a,b; int *q1,*q2; scanf("%d,%d",&a,&b); &q1=a,&q2=b; if(a

程序改错1

第1题(10.0分)题号:421 /*-------------------------------- 【程序改错】 -------------------------------- 功能:给一个不多于5位的正整数,要求: 一、求它是几位数, 二、逆序打印出各位数字。 --------------------------------*/ #include"stdio.h" main( ) { /**********FOUND**********/ long a,b,c,d,e,x, scanf("%ld",&x); a=x/10000; /**********FOUND**********/ b=x/10000/1000; c=x%1000/100; d=x%100/10; e=x%10; /**********FOUND**********/ if (a==0) printf("there are 5, %ld %ld %ld %ld %ld\n",e,d,c,b,a); else if (b!=0) printf("there are 4, %ld %ld %ld %ld\n",e,d,c,b); else if (c!=0) printf(" there are 3,%ld %ld %ld\n",e,d,c); else if (d!=0) printf("there are 2, %ld %ld\n",e,d); else if (e!=0) printf(" there are 1,%ld\n",e); getch(); } 答案: 1). long a,b,c,d,e,x; 2). b=x%10000/1000; 3). if (a!=0) 或 if (!a) 第2题(10.0分)题号:417 /*-------------------------------- 【程序改错】 -------------------------------- 功能:下题是一段有关结构体变量传递的程序. --------------------------------*/ #include "stdio.h" struct student { int x; char c; } a; main() { a.x=3; /**********FOUND**********/ a.c='a' f(a); /**********FOUND**********/ printf("%d,%c",a.x,b.c); getch(); } f(struct student b) { b.x=20; /**********FOUND**********/ b.c=y; } 答案: 1). a.c='a'; 2). printf("%d,%c",a.x,a.c); 3). b.c='y'; 第1题(10.0分)题号:440 /*-------------------------------- 【程序改错】 --------------------------------

C语言程序改错及填空题

下列程序是建立一个包含学生有关数据的单向链表。但该程序有2个错误,错误出现在每个注释行附近,请调试改正。调试改正中,不得改变程序结构,也不得增删语句。 #define NULL 0 struct stud { long num; char name[10]; float score; struct stud *next; }; /* …………… comment …………… */ int n; struct stud create() 序中有两处错误代码,请改正.注意,不得改变程序结构。 #include <> main() { int a[8],*p=a; int i,j; int tempmin,tempcode; printf("\n input the numbers:\n"); for (i=0;i<8;i++) scanf("%d",p+i);

tempmin=*p; for (i=0;i<7;i++) { for (j=i;j<8;j++) if (j==i||*(p+j)

专八改错习题及答案解析

英语专业八级改错练习题及答案解析(一) About half of the infant and maternal deaths in developing countries could be avoided if women had used family planning methods to prevent high risk ____1____ pregnancies, according to a report publishing recently by the Johns Hopking ____2____ University. The report indicates that 5.6 million infant deaths and 2,000,000 maternal Deaths could be prevented this year if women chose to have theirs children ____3____ within the safest years with adequate intervals among births and limited their ____4____ families to moderate size. This amounts to about half of the 9.8 million infant and 370.000 maternal deaths in developing countries, excluded China, estimated for this year by ____5____ the United Nation?s Children?s Fund and the US Centers for Disease Control respectably. China was excluded because very few births occur in the high ____6____ risk categories. The report says that evidences from around the world shows the risk of ____7____ maternal or infant ill and death is the highest in four specific types of ____8_____ pregnancy; pregnancies before the mother is 18 year old; those after the ____9____ mother is 35 years old; pregnancies after four births; and those lesser than ____10____ two years apart. 参考答案及解析: 1 将had used 改为used。因为此句是虚拟语气,表示与现在事实相反,故条件从句中应使用一般过去时。例如:Many would be wise if they did not think themselves wise. 许多人原本会成为聪明人-如果他们不自以为聪明的话。 2 将publishing改为published;report和publish时逻辑动宾关系,故应使用publish的过去分词短语来修饰report。例如:Any discovery that we may make, however small, will remain acquired knowledge. 任何可能的发现,不管多么微不足道,都将成为知识宝库中的一部分。 3 将theirs改为their; 4 将among改为between;在两次怀孕期间留出足够的间隔时间,故用between。 5 将过去分词excluded改为介词excluding。excluding意为“不包括…” 6 将respectably改为respectively;respectively 意为“分别地”,符合句子的意思。而respectably 意为“可敬的,值得尊敬地”。 7将evidences改为evidence。evidence是不可数名词。 8将ill改为illness。 9将year改为years。 10将lesser改为less 英语专业八级改错练习题及答案解析(二) “Home, sweet home” is a phrase that express an essential attitude in the United States. Whether the reality of life in the family house is sweet or no sweet, the cherished ideal of home _____1_____ has great importance for many people. This ideal is a vital part of the American dream. This dream, dramatized in the history of nineteenth century European settlers of American West, was to find a piece of place, build a house _____2_____

程序改错包括答案版本.docx

12592 '题目 : 编程求一个十进制整数n 的各位数字之和,设n 为小于或等于 5 位的数。'------------------------------------------------ Option Explicit Private Sub Form_Click() Dim N As Integer, Sum As Integer, S1 As String, S2 As String Dim i As Integer, Ch As String Sum = 0 N = InputBox(" 输入整数n") S1 = Str(N) S1 = Trim(S1) For i = 1 To Len(S1) '**********ERROR********** Ch = Mid(N, i, 1) '**********ERROR********** Sum = Val(Ch) Next i Print " 该整数的各位数之和是: "; Sum End Sub 答案: Ch=Mid(S1 , i , 1) Sum = Sum + Val(Ch) 12610'题目:程序功能根据输入的学习成绩, 分别显示优秀 (90 分以上 ), 良好 (75 分以上 ), 及格 (60 分以上 )不及格四个等级 . '------------------------------------------------ Option Explicit Private Sub Form_Click() Cls Dim i As Integer i = InputBox(" 请输入学习成绩") Select Case i '**********ERROR********** Case 0 < i < 100 MsgBox " 成绩应该在0--100 之间 """ '**********ERROR********** Case 90 Print " 优秀 " Case 75 To 89 Print " 良好 " Case 60 To 74 Print " 及格 " '**********ERROR********** Case MsgBox " 不及格 ", vbCritical End Select End Sub 答案: Case 100 < x or x < 0 Case 90 to 100 Case Else 12616.题目:求 s=1!+3!+5!+7! ,阶乘的计算用Function 过程 fact 实现 . '------------------------------------------------ Option Explicit Private Sub Form_Click() Dim i As Integer, s As Integer '**********ERROR********** For i = 1 To 7 s = s + fact(i) Next i Print s End Sub '**********ERROR********** Public Function fact() Dim t As Integer, i As Integer t = 1 For i = 1 To n t = t * i Next i '**********ERROR********** fact = i End Function 答案: For i = 1 To 7 Step 2 Public Function fact%(n%) fact = t 12620 题目 :编程实现从左到右的滚动字幕,滚动的速度由滚动条控件来控制。 '------------------------------------------------ Option Explicit Private Sub HScroll1_Scroll() '**********ERROR********** Timer1.Interval = HScroll1.Min - HScroll1.Value End Sub Private Sub Timer1_Timer() '**********ERROR********** If Label1.Left <= Form1.Width Then '**********ERROR**********

公文改错习题及答案

一. 请修改下面的公文行政管理的懂得来、公文改错题应先找出错误,再进行修改,要重视所学公文写作知识的正确运用. xx卫生局《会议通知》 全县各食品加工行业: 根据上级关于对食品加工行业的卫生状况进行一次全面大检查的通知精神,决定召开我县食品加工卫生工作会议,部署卫生检查工作,现将有关事项通知如下: 一、会议时间: 2009年10月25日至26日。10月24日下午两时至五时报到。 二、参加会议人员: 全县各食品加工单位来一名负责人,各乡、镇及县工商联请派出一名代表列席会议。 三、住宿费回单位报销,伙食费个人自理,按有关财政规定给以补助。 梁溪县卫生局(公章)2009年9月28日 1.标题: 只用“会议通知”就好,去掉“梁溪县卫生局”和书名号。 2.正文第一行开头应该空两格 3.“关于对食品加工行业的卫生状况进行一次全面大检查的通知”这个感觉是一个文件的名称,加上书名号,变成《关于对食品加工行业的卫生状况进行一次全面大检查的通知》。 4."现将有关事项通知如下"单独列一行 5.报到日期应该单独拿出来列一项:

报到日期:10月24日14:00—17:00 6.“参加会议人员”这一条写的太过口语化,公文要严谨, 可改成: 二、与会人员: 全县各食品加工单位负责人1名,各乡、镇及县工商联代表1名。 7.“三、住宿费回单位报销,伙食费个人自理,按有关财政规定给以补助。”也太口语化,可改为: 三、费用报销: 伙食费个人自理,住宿费各相关单位按有关财政规定补助。 8.落款和时间格式不对,应该靠右。二.修改下列文件标题 1.XX制药公司解决生产名中成药所需虎骨来源的请示 2.XX总公司组建XX实业公司的请示报告 3.XX公司对非法倒卖建筑材料的XXX开除公职的通知 4.XX公司关于开展春季运动会的决定的通知 5.XX总公司对所属单位学徒工转正后关于工资问题的规定 三.指出下列公文文稿的错误之处,并根据公文写作与处理的要求,改写为一份正确的公文.请示 因工作需要,我县急需购买小轿车一辆,请批准调拨经费XXX元。 另: 我县尚缺专业对口技术人员XX名,请在制定明年人员编制时一并考虑。 上述意见与要求如无不妥,请批复

c语言程序设计第五版习题答案

c语言程序设计第五版习 题答案 Prepared on 24 November 2020

习题解析与答案 第1章C语言概述 一.简答题 1.概述C语言的主要特点。 【解答】 (1)语言简洁、紧凑,使用方便、灵活。 (2)数据类型丰富,表达能力强。 (3)运算符多样。C语言中的运算符包含的范围非常广泛。 (4)具有结构化的控制语句。如if…else语句、while语句、dowhile语句、switch语句、for语句。 (5)允许直接访问物理地址。C语言中含有的位和指针运算,能够直接对内存地址进行访问操作。 (6)所生成的目标代码质量高,可移植性好。 2.构成C语言程序的基本单位是什么它由哪几部分组成 【解答】函数是构成C语言程序的基本单位。一个完整的C程序一般由文件包含、宏定义、函数说明、变量和一个或若干个函数组成。 3.C语言程序的运行一般要经过哪几个步骤 【解答】(1)编辑;(2)编译;(3)连接,生成EXE文件;(4)执行。 二.运行程序写结果 1.输入下面程序并运行。 main() { inta1,a2,x; a1=100; a2=50; x=a1-a2; printf(″x=%d\n″,x); } 【解答】运行结果为:x=50 2.输入下面程序并运行。 main()

{ inta1,a2,x; a1=10; a2=20; x=a1*a2; printf(″a1=%d,a2=%d\n″,a1,a2); printf(″x=%d\n″,x); } 【解答】运行结果为:a1=10,a2=20 x=200 三.编程题 1.参照本章例题,编写一个C程序,用于显示如下信息: ************************* IloveCprograms! ************************* 【分析与提示】 ①要有文件包含语句#include<>。C语言中没有数据的输入、输出等功 能,数据的输入、输出都是通过调用系统提供的库函数scanf和printf 等来实现的。这些函数的说明都包括在文件中。 ②main是主函数的名称。用{}括起来的内容是函数体,函数体由若干 条语句组成,这是计算机要执行的部分,每条语句以分号“;”结束。 ③注意显示的信息有三行,所以要用到换行符“\n”。 参考代码: #include<> main() { printf("************************\n"); printf("IloveCprograms!\n"); printf("************************\n"); } 第2章数据类型及其运算一.简答题 1.C语言中的数据类型主要有哪几类 【解答】短整型(shortint) 整型整型(int) 长整型(longint) 基本类型字符型(char)(float) 实型(浮点型) 双精度(double) 枚举类型(enum) 数组类型

程序改错完整版---C语言

(一)功能:用选择法对数组中的n个元素按从小到大的顺序进行排序。#include "stdio.h" #define N 20 void fun(int a[], int n) { int i, j, t, k; for (j = 0 ;j < n-1 ;j++) { /**********ERROR**********/ k = j for (i = j+1;i < n; i++) /**********ERROR**********/ if(a[i] >a[k]) /**********ERROR**********/ k=j; t = a[k] ; a[k] = a[j] ; a[j] = t; } } main() { int a[N]={9,6,8,3,-1},i, m = 5; printf("排序前的数据:") ; for(i = 0;i < m;i++) printf("%d ",a[i]); printf("\n"); fun(a,m); printf("排序后的数据:") ; for(i = 0;i < m;i++) printf("%d ",a[i]); printf("\n"); } 【参考答案】 k = j; 【参考答案】 if(a[i] < a[k]) if(a[k] > a[i])

【参考答案】 k = i; (二)功能:求广义菲玻那契级数的第n项。广义菲玻那契级数的前n 项为: 1,1,1,3,5,9,17,31,…… 项值通过函数值返回 main ( )函数。 例如:若 n = 15,则应输出:The value is: 2209。 #include "conio.h" #include "stdio.h" long fun ( int n ) { long a=1, b=1, c=1, d=1, k; /**********ERROR**********/ for (k=4; k

改错真题(8篇有答案)

1 While traveled to Paris on a bus, I became very sick. 1. ________ A well-dressing man on the bus helped me greatly. He 2.________ took me off the bus, found out where the doctor’s office. 3.________ and took me to there himself. The next day, he came 4. ________ to visit me. I didn’t speak French well, so I can’t talk with 5.________ him very much. However, even if we couldn’t talk, but we 6.________ could communicate. I communicated myself thanks 7.________ to his great kindness, and he communicated his concern 8.________ for my healthy. Through this experience I have learned that 9.________ communication can take place with much actual language at all. 10.________ 2 The Internet is playing a important part in our daily life. 1. ________ On the net, we can learn about news both home and abroad 2.________ and some other informations as well.We can also make phone 3.________ calls,send messages by e-mails,go to net schools, 4.________ but learn foreign languages by ourselves. 5.________ Beside,we can enjoy music,watch sports matches,and 6.________ play the chess or cards.The net even 7.________ help us do shopping,make friends with them 8._______. and make a chat with others.In a word,the Internet 9.________ has made our life more easier. 10.________ 3 A few months after returning the US from Germany, 1. ________ I take part in a college course in French. Since 2. ________ I have learned to speak German well in Germany, 3. ________ I thought that it might be interested to begin 4. ________ study another language. At the first class, the teacher 5. ________ asked us to do a pronunciation exercise, in which he would say one word or two in French, and each 6. ________ student would do their best to copy. When he got to 7. ________ me, he kept having me to say more words, and I finally 8. ________

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