文档库 最新最全的文档下载
当前位置:文档库 › 2011年3月份二C改错题答案

2011年3月份二C改错题答案

2011年3月份二C改错题答案
2011年3月份二C改错题答案

2011年3月上机改错题

1、

#include

#include

typedef struct aa

{ int data;

struct aa *next;

} NODE;

int fun ( NODE *h )

{ int max=-1;

NODE *p;

/***********found**********/

p=h ; p=h->next; /*h指向的是头节点,题目要求

不要头节点,那么我们从第2个结点

开始*/

while(p)

{ if(p->data>max )

max=p->data;

/***********found**********/

p=h->next ; p=p->next; /*链表中的指针后移*/

}

return max;

}

outresult(int s, FILE *pf)

{ fprintf(pf,"\nThe max in link : %d\n",s);}

NODE *creatlink(int n, int m)

{ NODE *h, *p, *s;

int i;

h=p=(NODE *)malloc(sizeof(NODE));h->data=9999;

for(i=1; i<=n; i++)

{ s=(NODE *)malloc(sizeof(NODE));

s->data=rand()%m; s->next=p->next;

p->next=s; p=p->next;

}

p->next=NULL;

return h;

outlink(NODE *h, FILE *pf)

{ NODE *p;

p=h->next;

fprintf(pf,"\nTHE LIST :\n\n HEAD ");

while(p)

{ fprintf(pf,"->%d ",p->data); p=p->next; }

fprintf(pf,"\n");

}

main()

{ NODE *head; int m;

head=creatlink(12, 100);

outlink(head , stdout);

m=fun(head);

printf("\nTHE RESULT :\n"); outresult(m, stdout);

}

2、

#include

double fun ( int m )

{ double y = 1.0 ;

int i ;

/**************found**************/

for(i = 2 ; i < m ; i++) for(i = 2 ; i < =m ; i++) /*根据题意循环条件

是i<=m*/

/**************found**************/

y -= 1 /(i * i) ; y -= 1.0 /(i * i) ; /*i 是整型等号右边都是整

型,得到结果也是整型,我

们想要的是实型所以,要求

1改成1.0*/ return( y ) ;

}

main( )

{ int n = 5 ;

printf( "\nThe result is %lf\n", fun ( n ) ) ;

}

3

#include

#include

char* fun( char tt[] )

{

int i;

for( i = 0; tt[i]; i++ )

/**********found***********/

if(( 'a' <= tt[i] )||( tt[i] <= 'z' ) ) if(( 'a' <= tt[i] )&&( tt[i] <= 'z' ) ) /*很明显,

这个地方是并且,用&&*/

/**********found***********/

tt[i] += 32; tt[i] -= 32; /*小写变大写是减去32*/

return( tt );

}

main( )

{

char tt[81];

printf( "\nPlease enter a string: " );

gets( tt );

printf( "\nThe result string is:\n%s", fun( tt ) );

}

4

#include

#include

float fun ( float num )

{ int s ;

float n, t, pi ;

t = 1 ; pi = 0 ; n = 1 ; s = 1 ;

/**************found**************/

while(t >= num) while(fabs(t) >= num) /*这里的t可能会是负数,

所以要取绝对值用函

数fabs() 来实现*/ {

pi = pi + t ;

n = n + 2 ;

s = -s ;

/**************found**************/

t = s % n ; t = s / n ; /*这里对应题目是除法*/ }

pi = pi * 4 ;

return pi ;

}

main( )

{ float n1, n2 ;

printf("Enter a float number: ") ;

scanf("%f", &n1) ;

n2 = fun(n1) ;

printf("%6.4f\n", n2) ;

}

5

#include

int fun(int *x,int y)

{

int t ;

/**************found**************/

t = x ; x = y ; t=*x; *x=y; /*这里的x是指针变量,

可以通过间址运算符*

来运算,*x 就是变量

a */

/**************found**************/

return(y) ; return t; /*返回的值给变量 b ,应

是原来 a 的内容,也就是

*x 的内容*/

}

main()

{

int a = 3, b = 8 ;

printf("%d %d\n", a, b) ;

b = fun(&a, b) ;

printf("%d %d\n", a, b) ;

}

6

#include

void fun (long s, long *t)

{ int d;

long sl=1;

/************found************/

t = 0; *t=0; /* t 是指针变量*/

while ( s > 0)

{ d = s%10;

/************found************/

if (d%2 == 0) if (d%2 != 0) /*这里应该是留下奇数*/ { *t = d * sl + *t;

sl *= 10;

}

s /= 10;

}

}

main()

{ long s, t;

printf("\nPlease enter s:"); scanf("%ld", &s);

fun(s, &t);

printf("The result is: %ld\n", t);

}

7

#include

int fun(int a,int b)

{ int r,t;

if(a

/************found************/

t=a; b=a; a=t;

}

r=a%b;

while(r!=0)

{ a=b; b=r; r=a%b; }

/************found************/

return(a); return (b); /*这里b 存放的最大公约数*/ }

main()

{ int num1, num2,a;

printf("Input num1 num2: "); scanf("%d%d",&num1,&num2);

printf("num1= %d num2= %d\n\n",num1,num2);

a=fun(num1,num2);

printf("The maximun common divisor is %d\n\n",a);

}

8

#include

/**************found**************/

fun (int n ) double fun (int n ) /*根据函数被使用的类

型,或者返回值得到

函数类型是double */

{ int a = 2, b = 1, c, k ;

double s=0.0 ;

for ( k = 1; k <= n; k++ )

{ s = s + 1.0 * a / b ;

/**************found**************/

c = a; a += b; b += c; c = a; a += b; b = c; /*根据题目要求来,看出来b

=c*/

}

return(s) ;

}

main( )

{ int n = 5 ;

printf( "\nThe value of function is: %lf\n", fun ( n ) ) ;

}

9

#include

#define N 10

int findmid(int a, int b, int c)

{ int t;

t = (a>b)?(b>c?b:(a>c?c:a)):((a>c)?a:((b>c)?c:b));

/**********found**********/

return b; retrun t; /*算了好久,算出来的t ,当然是返回

t 啦*/

}

void fun(int x[])

{ int i,a,b,c,t[N];

/**********found**********/

for(i=0;i

号结束*/

for(i=0;i

{ a=t[i];b=t[i+1];c=t[i+2];

/**********found**********/

t[i+1]=findmid(a,b,c); x[i+1]=findmid(a,b,c); /*最终结果要放在x 数组中*/ }

}

main()

{ int i, x[N]={6,5,7,23,18,5,8,21,45,38};

for(i=0; i

printf("\n");

fun(x);

for(i=0; i

printf("\n");

}

10

#include

/************found************/

void fun (long s, long t) void fun (long s, long * t) /*这里的t是指

针变量,应该定义的时候有*

*/

{ long sl=10;

s /= 10;

*t = s % 10;

/************found************/

while ( s < 0) while ( s >0) /*很明显,这里的条件不对嘛*/

{ s = s/100;

*t = s%10*sl + *t;

sl = sl * 10;

}

}

main()

{ long s, t;

printf("\nPlease enter s:"); scanf("%ld", &s);

fun(s, &t);

printf("The result is: %ld\n", t);

}

11

#include

int fun ( int m )

{ int k = 2;

while ( k <= m && (m%k))

/************found************/

k++ k++; /*语句少了分号*/

/************found************/

if (m = k ) if (m == k ) /*这里是比较,不是赋值,要用

== 是两个等号*/ return 1;

else return 0;

}

main( )

{ int n;

printf( "\nPlease enter n: " ); scanf( "%d", &n );

if ( fun ( n ) ) printf( "YES\n" );

else printf( "NO!\n" );

}

12

#include

int fun(int m)

{ int i, k ;

for (i = m + 1 ; ; i++) {

for (k = 2 ; k < i ; k++)

/**************found**************/

if (i % k != 0) if (i % k == 0) /*这里是能被整除的

时候break*/

break ;

/**************found**************/

if (k < i) if (k >= i) /*内层的for循环的条

件不是break 结束

也就是从来没有被整

除过,最后得到的是

素数*/

return(i);

}

}

void main()

{

int n ;

n = fun(20) ;

printf("n=%d\n", n) ;

}

13

#include

int fun(double x[], int n)

{

/************found************/

int j, c=0, double xa=0.0; int j, c=0;double xa=0.0; /*定义完一种类型

之后,应该以分号结束*/ for (j=0; j

xa += x[j]/n;

printf("ave =%f\n",xa);

for (j=0; j

/************found************/

if (x[j] => xa) if (x[j] >= xa) /*大于等于的符号怎么

写,一定看清楚了哦*/

c++;

return c;

}

main ( )

{ double x[100] = {193.199, 195.673, 195.757, 196.051, 196.092, 196.596, 196.579, 196.763};

printf("%d\n", fun (x, 8));

}

14

#include

void fun(char *s)

{ int i,j;

for(i=0,j=0; s[i]!='\0'; i++)

if(s[i]>='0' && s[i]<='9')

/**********found**********/

s[j]=s[i]; s[j++]=s[i]; /*s[j] 被赋值了之后,j 要++运算,以便

s[j]是下一个元素*/

/**********found**********/

s[j]="\0"; s[j]=’\0’;/*这里是字符0 不是字符串0*/

}

main()

{ char item[80];

printf("\nEnter a string : ");gets(item);

printf("\n\nThe string is : \"%s\"\n",item);

fun(item);

printf("\n\nThe string of changing is : \"%s\"\n",item );

15

#include

#include

#define M 10

int a[M][M] = {0} ;

/**************found**************/

void fun(int **a, int m) void fun(int a[M][M], int m) /*这里定义变量

能够接受具体二维数组

a[M][M] ,如果不知道怎

么定义,直接照抄数组原来

的定义都可以*/

{ int j, k ;

for (j = 0 ; j < m ; j++ )

for (k = 0 ; k < m ; k++ )

/**************found**************/

a[j][k] = k * j ; a[j][k] = (k +1)* (j+1) ; /*这里是根据题目要

求,大家可以算出来第一个数字应该怎么得

到*/

}

main ( )

{ int i, j, n ;

printf ( " Enter n : " ) ; scanf ("%d", &n ) ;

fun ( a, n ) ;

for ( i = 0 ; i < n ; i++)

{ for (j = 0 ; j < n ; j++)

printf ( "%4d", a[i][j] ) ;

printf ( "\n" ) ;

}

}

#include

long fun(int g)

{

/**********found**********/

switch(g); switch(g) /*switch() 后面没有分号*/ { case 0: return 0;

/**********found**********/

case 1 ;case 2 : return 1 ; case 1 : case 2 : return 1 ; /*case 1 后面应该

冒号case 之后必须有冒号*/ }

return( fun(g-1)+fun(g-2) );

}

main()

{ long fib; int n;

printf("Input n: "); scanf("%d",&n); printf("n = %d\n",n);

fib=fun(n);

printf("fib = %d\n\n",fib);

}

17

#include

double fun( double q )

{ int n; double s,t;

n = 2;

s = 2.0;

while (s<=q)

{

t=s;

/************found************/

s=s+(n+1)/n; s=s+(n+1.0)/n; /*这里的n 是整形,(n+1)/n 得到的

结果也肯定是整形,而我们要得到实

型/

n++;

}

printf("n=%d\n",n);

/************found************/

return s; return t ; /*如果是return s 根据循环条件会多

加了一项所以返回时加最后之前的t

*/

}

main ( )

{

printf("%f\n", fun(50));

}

18

#include

int fun( int k )

{ int m=0, mc=0 ;

while ((k >= 2) && (mc < 10))

{

/************found************/

if ((k%13 = 0) || (k%17 = 0)) if ((k%13 == 0) || (k%17 = =0)) /*这里是比

较不是赋值,所以用两个连续的等号

==*/

{ m = m+ k; mc++; }

k--;

}

return m;

/************found************/

_____ } /*函数体结束的时候用} 结束*/

main ( )

{

printf("%d\n", fun (500));

}

19

#include

#define N 10

/************found************/

void fun(int a[], int m ) int fun(int a[], int m ) /* 根据

主函数调用fun函数的,可以看到

要求fun 函数返回的是个int 型*/ { int low=0,high=N-1,mid;

while(low<=high)

{ mid=(low+high)/2;

if(m

high=mid-1;

/************found************/

else If(m > a[mid]) else if(m > a[mid]) /*这里的if 是关

键字,关键字必须全部小写*/ low=mid+1;

else return(mid);

}

return(-1);

}

main()

{ int i,a[N]={-3,4,7,9,13,45,67,89,100,180 },k,m;

printf("a数组中的数据如下:");

for(i=0;i

printf("Enter m: "); scanf("%d",&m);

k=fun(a,m);

if(k>=0) printf("m=%d,index=%d\n",m,k);

else printf("Not be found!\n");

}

20

#include

#include

#define MAXLINE 20

fun ( char *pstr[6])

{ int i, j ;

char *p ;

for (i = 0 ; i < 5 ; i++ ) {

/**************found**************/

for (j = i + 1, j < 6, j++) for (j = i + 1;j < 6; j++) /*for 循环里面必须是

2个分号,这是格式,必须记牢*/ {

if(strcmp(*(pstr + i), *(pstr + j)) > 0)

{

p = *(pstr + i) ;

/**************found**************/

*(pstr + i) = pstr + j ; *(pstr + i) = *(pstr + j) /* pstr + j 是地址,要通过

* 运算符取得这个地址对应的内容*/ *(pstr + j) = p ;

}

}

}

}

main( )

{ int i ;

char *pstr[6], str[6][MAXLINE] ;

for(i = 0; i < 6 ; i++) pstr[i] = str[i] ;

printf( "\nEnter 6 string(1 string at each line): \n" ) ;

for(i = 0 ; i < 6 ; i++) scanf("%s", pstr[i]) ;

fun(pstr) ;

printf("The strings after sorting:\n") ;

for(i = 0 ; i < 6 ; i++) printf("%s\n", pstr[i]) ;

}

21

#include

void fun(char *p, char *b)

{ int i, k=0;

while(*p)

{ i=1;

while( i<=3 && *p ) {

/**********found**********/

b[k]=p; b[k]=p; /* p是指针变量,要取得内容,要使用

* 运算符*/

k++; p++; i++;

}

if(*p)

{

/**********found**********/

b[k++]=" "; b[k++]=’’; /*空格字符就是单引号里面的一个空格*/ }

}

b[k]='\0';

}

main()

{ char a[80],b[80];

printf("Enter a string: "); gets(a);

printf("The original string: "); puts(a);

fun(a,b);

printf("\nThe string after insert space: "); puts(b); printf("\n\n");

}

22

#include

#include

/************found************/

f( double x) double f( double x) /*根据函数被调用地

方决定函数的类型这里是double */ {

if (x == 0.0 || x == 2.0)

return 0.0;

else if (x < 0.0)

return (x -1)/(x-2);

else

return (x +1)/(x-2);

}

double fun( int n )

{ int i; double s=0.0, y;

for (i= -n; i<=n; i++)

{y=f(1.0*i); s += y;}

/************found************/

return s return s ;/*return 语句后面必须有分号(少了分号

了,看到没有啊)*/

}

main ( )

{

printf("%f\n", fun(5) );

}

23

#include

#include

int fun( int high )

{ int sum = 0, n=0, j, yes;

/************found************/

while ((high >= 2) && (n < 10) while ((high >= 2) && (n < 10)) /*while 最后少了个)

有没有注意到。。。。。*/

{ yes = 1;

for (j=2; j<=high/2; j++ )

if (high % j ==0 ){

/************found************/

yes=0; break yes=0; break ; /*break 后面少个分号,应该

注意到了吧*/

}

if (yes) { sum +=high; n++; }

high--;

}

return sum ;

}

main ( )

{

printf("%d\n", fun (100));

}

24

#include

#include

/************found************/

void fun( int k ) double fun( int k ) /*说到不想说了,函

数的类型就是被调用处的类型*/ { int n; double s, w, p, q;

n = 1;

s = 1.0;

while ( n <= k )

{ w = 2.0 * n;

p = w - 1.0;

q = w + 1.0;

s = s * w *w/p/q;

n++;

}

/************found************/

return s return s ; /*return 语句后面又少了分号*/ }

main ( )

{

printf("%f\n", fun (10));

}

25

#include

int fun (char *str,char *substr)

{ int i,j,k,num=0;

/************found************/

for(i = 0, str[i], i++) for(i = 0;str[i];i++) /*for 语句中有2个

分号,一定记住,格式背下来*/ for(j=i,k=0;substr[k]==str[j];k++,j++)

/************found************/

If(substr[k+1]=='\0') if(substr[k+1]=='\0') /*if 是关键字,关键

字必须都是小写字母*/

{ num++;

break;

}

return num;

}

main()

{

char str[80],substr[80];

printf("Input a string:") ;

gets(str);

printf("Input a substring:") ;

gets(substr);

printf("%d\n",fun(str,substr));

}

26

2019届高考英语(通用版)二轮复习短文改错专题训练:训练1 短文改错(Ⅰ)(含解析)

专题五短文改错 训练1 短文改错(Ⅰ) A (2019·东北三省四市一模) One of my happiest childhood memories were having dinner with my parents and two sisters.As a result, found that we seldom had a chance to get together, then we decided we would set aside three evenings the week for a sit-down dinner.First we tried setting three fixed days for our experiment—Mondays, Wednesdays or Fridays.After a couple of week of trying this plan, almost everyone was unhappy.For a while, the kids began to resist the idea.They said they would rather to spend the time with their friends or take part in some activities.Gradual, though, they began to see these evenings together for a very different way.We laughed a lot and we discussed about each other's problems.Since a few months, we all felt that we had been able to build much strong relationships with the family than we had before. 【答案】 One of my happiest childhood memories were was/is having dinner with my parents and two sisters.As a result, ∧ having found that we seldom had a chance to get together, then we decided we would set aside three evenings the a week for a sit-down dinner.First we tried setting three fixed days for our experiment—Mondays, Wednesdays or and Fridays.After a couple of week weeks of trying this plan, almost everyone was unhappy.For a while, the kids began to resist the idea.They said they would rather ﹨to spend the time with their friends or take part in some activities. Gradual Gradually, though, they began to see these evenings together for in a very different way.We laughed a lot and we discussed about each other's problems.Since After a few months, we all felt that we had been able to build much strong stronger relationships with the family than we had before. B (2019·河北唐山一模) A new police officer was out for his first ride in a police car with a experienced partner.A call came in told them to break up a crowd of people.The officers drove to the street and observe a

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)

(完整版)高考英语短文改错练习题及答案

Last week my parents and I took a two-days trip to Emei Mountain in Sichuan. As every one knows, it’s famous mountain with all kinds of plants and animals. The weather was fine. It was about noon we arrived at the foot of the mountain. The three of them were very excited. As we climbed the mountain, we fed monkeys, visiting temples and told stories. On the way up I was busy taking picture since the scenery was so beautiful. The time passes quickly. Evening came down. We spent the night in a hotel at the top of the mountain. The food was expensive and the service was good. I was so tired that I fell asleep at the moment my head touched the pillow. (二) Many teachers worry about the effects of television with young people. According to studies, many children spend more time watching television than they spend in school. Because so much viewing, children may not be develop the habit of read and the ability to enjoy themselves. No one worries much about the radio program young people listen to, although radios can be very noise. Teachers also wonder about the effects of television commercials. On one year the average child will see 25,000 television commercials, all planned and written by grown-ups to make children to want things that they don't real need. (三) I’m the captain o f our school team so with my fellow players we’ve won sever al games. There will an important game next month. But one of the best player in our team told me just then that he wouldn’t play basketball once more. His parents asked him to spend in more time preparing for the college entrance examination. I feel sorry to him. But his parents think go to college is more important than playing sports and college was the only place for a smart boy like his son. So my friend had no choice. He wanted to make their parents happy. (四) When I first learned to write English, I ran into many difficulties . The main problem was in that I always thought in Chinese and tried to translate anything into English. My teacher advised me to keep my diary. I followed her advice and should put down 100 words or so each day. Soon I began to enjoy talk to myself on paper as I was learning to express me in simple English .One day I wrote a little story and showed to my teacher .She liked it very much and reads it to the class .All said the story was a good one. Their word were a great encouragement to me. (五) Dear Ralph, I’m a newcomer here of a small town. I would describe myself as shy and quietly. Before my classmates, it seems always difficult for me to do things as well them. I'm sure they will laugh to me and see me as a fool. So I feel happy every day. Besides, I have few friends. I don't know that they don't like to talk with me. Sometimes, we talked to each other very well in class, but after class we become stranger at once. I am trying to improve the situation since it doesn’t seem to work. Can you tell me about what I should do? Yours, Xiao Wei

2016年高考英语真题分类汇编:专题09-短文改错(解析版)

2016年高考试题分项解析之专题9短文改错 1.【2016·全国新课标I】短文改错(10 分) 假定英语课上老师要求同桌之间交换修改作文,请你修改你同桌写的以下作文。 文中共有10处语言错误,每句中最多有两处。每处错误仅涉及一个单词的增加、删除或修改。 增加:在缺词处加一个漏字符号( ),并在其下面写出该加的词。 删除:把多余的词用斜线()划掉。学科&网 修改:在错的词下划一横线,并在该词下面写出修改后的词。 注意:1.每处错误及其修改均仅限一词; 2.只允许修改10处,多者(从第11处起)不计分。 My uncle is the owner of a restaurant close to that 1 live .Though not very big ,but the restaurant is popular in our area .It is always crowded with customers at meal times .Some people even had to wait outside My uncle tells me that the key to his success is honest. Every day he makes sure that fresh vegetables or high quality oil are using for cooking. My uncle says that he never dreams becoming rich in the short period of time. Instead, he hopes that our business will grow steady. 【答案】 1. that →where 2. but去掉 3. had →have 4. honest→ honesty 5. or→ and 6. using →used 7. becoming前加of 8. the →a 9. our→ his 10. stead→steadily 【归纳总结】在英语中though、although、while或者as等引导的让步状语从句不和but连用;连词because不和so连用;此外,return不和back连用。 3. had →have 考查动词时态。文章是介绍现在的情况,应该用一般现在时。 4. honest→ honesty 考查名词。此处是指诚实是他成功的秘诀,用名词形式。而形容词honest 意思是“诚实的”,是指人的性格特点。

高考英语专题短文改错二十篇1-20(附答案)

1. Three friends and I was driving on a highway. While we were going at least 50 miles per hour, we passed over a car. It had broken down, stopped on the side of the road. My friend slows down, and pulled behind the other car. He got out of the car immediate and before I knew it he was helping the other person push the car down the road to a spot where wasn’t so close to the passing cars. From the way they were pushing the car, it looked as if my friend was pushing them all by himself. I thought my friend help a complete stranger like this was a great thing, but I won’t forget his good nature or character. 2. Dear Brad, I’m very glad to hear from you. In your last letter you ask about the post-80s in China. Actually I am the boy who belongs to this group. Comparing with our parents, life for us is getting much hard. The job market is tough and the house is expensively to afford. Now many girls prefer to marry with a man who owns a house and a car. Therefore, I don’t think love built on house and cars is true love, and I doubt how long it will last. As a matter of fact, though situations are tough today, a lot of we post-80s are making great efforts live a good life. I believe we will have a nice future. Li Hua 3. Good morning, ladies and gentlemen, Some of us are having problems about our parents, as they often look into our school bags or read our diaries. I fully understand why we are comfortable about it, but it is no need to feel too sadly. Our parents are checking in our bags or diaries to make sure we’re not getting into troubles. They have probably heard of some horrible stories about other kids and thinking we might do the same. Or perhaps they just want to connect with us and are doing it all wrong. My suggestion is: Tell them we want them to trust us as many as we’d like to trust them. If you don’t think you can talk to them, write them a letter and leave it lie around --- they are bound to read it. Thank you!

专题10 备战高中高考英语短文改错-2021高考英语短文改错专项练习(解析版)

改错专项10 1.假定英语课上老师要求同桌之间交换修改作文,请你修改你同桌写的以下作文。文中共有10处语言错误,每句中最多有两处。每处错误仅涉及一个单词的增加、删除或修改。 增加:在缺词处加一个漏字符号(∧),并在其下面写出该加的词。 删除:把多余的词用斜线(\)划掉。 修改:在错的词下划一横线,并在该词下面写出修改后的词。 注意:⒈每处错误及其修改均仅限一词; ⒉只允许修改10处,多者(从第11处起)不计分。 I enjoy getting up early so I can have early start to the day.I don't like leaving my work until the last minutes.I always do the things I like least first and then do those I like them better.When I am freely, I read books or hang out with my good friends.I will tell him about it if something bothers me.To cheering me up, they often tell me jokes and help me to find a way out.I also use a good method of deal with stress.I try to go to places that I feel really relaxed, like lying on the grass on a warmth day.The method often work and makes me feel peaceful. 【答案】①early前面加an ②minutes→minute ③them 去掉④freely→free ⑤him→them ⑥cheering→cheer ⑦deal→dealing ⑧that→where ⑨warmth→warm ⑩work→works 【解析】 ①考查冠词。start可以用作名词,start用作可数名词的基本意思是“开始,出发,起点”,可指做某件事情的开始,也可指某件事情的开始地点,是可数名词。 句意:我喜欢早起,这样我就可以早点开始新的一天。start为可数名词,此处表示泛指且early为元音音素开头的单词,故early前加an。 ②考查名词。句意:我不喜欢把工作留到最后一刻。根据上文the last"最后的;最后一个"后跟单数名词,故minutes 改为minute。 ③考查代词。句意:我总是先做我最不喜欢的事,然后再做我更喜欢的事。本句为定语从句修饰those ,且作like的宾语,省略了连接词that/which。故them去掉。 ④考查形容词。句意:当我有空的时候,我读书或和我的好朋友出去玩。根据上文am可知应跟形容词作表语,故freely改为free。 ⑤考查代词。句意:如果有什么事困扰我,我会告诉他们的。此处指上文my good friends,故him 改为them。 ⑥考查非谓语动词。句意:为了让我高兴起来,他们经常给我讲笑话,帮助我想解决办法。本句为不定式作目的状语,故cheering 改为cheer。 ⑦考查非谓语动词。句意:我也用一个很好的方法来处理压力。of为介词后跟动名词做宾语,故deal 改

C语言程序改错题

第12次上机程序改错第1题 【程序改错】 -------------------------------------------------------- 功能:求二分之一的圆面积,函数通过形参得到圆的半径,函数返回二分之一的圆面积。 例如:输入圆的半径值:19.527 输出为:s = 598.950017。 ------------------------------------------------------*/ #include #include /**********FOUND**********/ double fun( r) double fun(double r) { double s; /**********FOUND**********/ s=1/2*3.14159* r * r; s=1.0/2*3.14159*r*r; /**********FOUND**********/ return r; return s; } main() { float x;

printf ( "Enter x: "); scanf ( "%f", &x ); printf (" s = %f\n ", fun ( x ) ); } 第2题【程序改错】 功能:先将在字符串s中的字符按逆序存放到t串中,然后把s中的字符按正序连接到t串的后面。 例如:当s中的字符串为:“ABCDE”时,则t中的字符串应为:“EDCBAABCDE”。 ------------------------------------------------------*/ #include #include #include void fun (char *s, char *t) { /**********FOUND**********/ int i; int sl,i; sl = strlen(s); for (i=0; i

高一英语短文改错题及答案

短文改错 增加:在缺词处加一个漏字符号(∧),并在其下面写出该加的词。 删除:把多余的词用斜线(\)划掉。 修改:在错的词下划一横线,并在该词下面写出修改后的词。 1 A shopkeeper once found that a bag money had been stolen from his shop.He went to the judge(法官)and tell him about his loss(损失)The judge ordered all people of the shop to come before him.He took a number of the sticks of equal length(长度)or gave one stick to each person.Then he said,“Come after me again tomorrow.I’ll then know which of you are the thief because the stick given to a thief will be one inch longer than the other.” 2 Miss Evans taught physics in school in London.Last month she was explaining to one of her class about sound ,and she decide to test them to see how successful she had been in her work.She said to them,“Now I ha s a sister in Washington.If I was calling her by the phone,and you were on the other side of the street.Who would hear me first,my sister and you And why” A clever boy at once answered,“You sister,Miss Evans,because the electricity travels much faster than sound waves.” “Very well,” Miss Evans praised. 3 It is interested to visit another country,but sometimes there are some questions when we don’t know the language very well.It may be difficult to talk about the people there.We may not know how to use the telephone in the country which are visiting.We may not know what to buy the things we need.In a strange country we may not know where to eat and what to order in a restaurant.It is not easy to decide how many money to tip(付小费)waiters or taxi drivers.When we are helpless,we may not know how to ask help.After a short time later,however,we learn what to do 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

2019届高考英语(通用版)二轮复习短文改错专题训练:训练2 短文改错(Ⅱ)(含解析)

训练2 短文改错(Ⅱ) A (2019·全国卷Ⅰ) Nearly five years before,and with the help by our father,my sister and I planted some cherry tomatoes(圣女果)in our back garden.Since then—for all these year—we had been allowing tomatoes to self-seed where they please.As result,the plants are growing somewhere.The fruits are small in size,but juicy and taste.There are so much that we often share them with our neighbors.Although we allow tomato plants to grow in the same place year after year,but we have never had any disease or insect attack problems.We are growing wonderfully tomatoes at no cost! 【答案】 Nearly five years before ago,and with the help by of our father,my sister and I planted some cherry tomatoes(圣女果)in our back garden.Since then—for all these year years—we had have been allowing tomatoes to self-seed where they please.As ∧ a result,the plants are growing somewhere everywhere.The fruits are small in size,but juicy and taste tasty.There are so much many that we often share them with our neighbors.Although we allow tomato plants to grow in the same place year after year,but 或yet we have never had any disease or insect attack problems.We are growing wonderfully wonderful tomatoes at no cost! B (2019·南昌一模) A woman was taken to the hospital.While having an operation, she had a nearly death experience.Seeing God, she asked how this was it.God said,“No, you had another 40 years.”On recovery the women decided to have a plastic surgery.She had someone change her hair color, thinking since she had so many time to live, she'd better make full use from it.Finally she got out of the hospital.While crossing the street, she killed by an ambulance speeded by.Arriving in the front of God, she demanded,“They said I had another 40 years!” God replied, “But I didn't recognize you.” 【答案】 A woman was taken to the hospital.While having an operation, she had a nearly near death experience.Seeing God, she asked how if/whether this was it.God said, “No, you had have another 40

程序改错完整版---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

高中英语短文改错专题练习40篇(附答案及解析)

高中英语短文改错专题练习40篇(附答案及解析) 短文改错(每篇文章共10小题;每小题1分,满分10分) 假定英语课上老师要求同桌之间交换修改作文,请你修改你同桌写的以下作文。文中共有 10处语言错误,每句中最多有两处。错误仅涉及一个单词的增加、删除或修改。 增加:在缺词处加一个漏字符号( ),并在其下面写出该加的词。 删除:把多余的词用斜线(\)划掉。 修改:在错的词下画一横线,并在该词下面写出修改后的词。 注意:1.每处错误及其修改均仅限一词; 2.只允许修改10处,多者(从第11处起)不计分。 (1) Today is Sunday. The sky is full of sunshine, so does my life. At about 9:00 a.m., I go to the bookstore with my friends. There was a lot of new books. I didn‘t know what one to buy because these books were all useful to me. At 10:00, we went to cinema. The film was called The Earthquake of Tangshan but some people were waiting outside the booking office. It took us about two hours to see it. Having been seen the film, everyone was deeply moving. Some of my friends even burs t into tear. That‘s a really wonderful film. It is very worth seeing. What a happy day! I hope tomorrow I will be even happier. (2) Dear Mary, Our city had changed a lot in the past 5 years. Firstly, more high buildings have appeared, that are modern and beautiful. Many overpasses have set up, so it has become very convenient for people to travel. However, many families have got car of their own. The people‘s life here has become rich or colorful. People can enjoy themselves traveling on the holiday. To my delighted, I can taste delicious food of different countries. And now it is easy for me to keep touch with you than before, for I can email you in my office. Yours, Christine (3) Patience is of great importance in our daily life. Once I waited a bus to come at a stop. 30 minutes past, but no bus came. Both upset and annoyed, I decided to walk on feet. But no sooner had I left when the bus arrived. I thought if I had waited for one more minute, I would have caught it. If I chose to take a next bus, I would have to wait for other 30 minutes. Only then do I realize my problem. Being impatient will possible waste all the effort that we have put it in. Now whenever I am close to lose my patience, I‘ll think of this experience.

高考英语短文改错专项训练(附答案解析)

高考英语短文改错专项训练(含答案) 1.【2016·全国新课标I】短文改错(10 分) My uncle is the owner of a restaurant close to that 1 live .Though not very big ,but the restaurant is popular in our area .It is always crowded with customers at meal times .Some people even had to wait outside My uncle tells me that the key to his success is honest. Every day he makes sure that fresh vegetables or high quality oil are using for cooking. My uncle says that he never dreams becoming rich in the short period of time. Instead, he hopes that our business will grow steady. 2.【2016·全国新课标II】短文改错(共10小题,每小题1分,满分10分) The summer holiday is coming. My classmates and I are talking about how to do during the holiday. We can chose between staying at home and take a trip. If we stay at home, it is comfortable but there is no need to spend money. But in that case, we will learn little about world. If we go on a trip abroad, we can broaden you view and gain knowledges we cannot get from books. Some classmates suggest we can go to places of interest nearby. I thought that it is a good idea. It does not cost many, yet we can still learn a lot. 3.【2016·全国新课标III】短文改错(共10小题;每小题1分,满分10分) The teenage year from 13 to 19 were the most difficult time for me . They were also the best and worse years in my life . At the first, I thought I knew everything and could make decisions by yourself. However, my parents didn’t seem to think such. They always tell me what to do and how to do it. At one time , I even felt my parents couldn’t understand me so I hoped I could be freely from them. I showed them I was independent by wear strange clothes. Now I am leaving home to college. At last, I will be on my own, but I still want to have my parents to turn to whenever need help. 4.【2016·四川】短文改错(共10小题;每小题1分,满分10分) It is Mother’s Day today. Though it’s a western festival, it’s popular in China now. Mom has a full-time job, so she has to do most of the houseworks. She is a great mother. Both Dad or I planned to do something on Mother’s Day. We get up early in the morning. Dad cleaned the house, and then went on shopping. When he came back, I found a bunch of flowers in her hand. I asked Mom to stay in the sitting room and I cooked in kitchen. The dishes what I cooked were Mom’s favoritiest. At dinner, we said to her, “Happy Mother’s Day!”Mom was grateful and moving.

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