问题 改错题

短文改错。

      假定英语课上老师要求同桌之间交换修改作文,请你修改你同学写的以下作文。文中共有10处语

言错误,每句中最多有两处。错误涉及一个单词的增加、删除或修改。

     增加:在缺词处加一个漏字符号(),并在其下面写出该加的词。

     删除:把多余的词用斜线(\)划掉。

     修改:在错的词下划一横线,并在该词下面写出修改后的词。

     注意:1.每处错误及其修改均仅限一词; 

               2.只允许修改10处,多者(从第11处起)不计分。

     I first met Li Ming at a friend birthday party five years ago. Then I invited Li Ming over in my place.

We listen to my CDs together and soon became best friends. Three years ago, Li Ming's parents invited

I to spend two wonderful week in Qingdao with them during the summer holiday. Li Ming and I loved

walking along the beautifully beaches there. Last year I was ill but had to stay in hospital for a week. Li

Ming came see me every day. Then his father has changed jobs and they moved to another city. Since

then we haven't see each other. but we've kept writing to each other.

____________________________________________________________________________________

答案

     I first met Li Ming at a friend birthday party five years ago. Then I invited Li Ming over in my place.

                                   1.friend's                                                                                2.to

We listen to my CDs together and soon became best friends. Three years ago, Li Ming's parents invited

 3. listened

I to spend two wonderful week in Qingdao with them during the summer holiday. Li Ming and I loved

4. me                           5.weeks

walking along the beautifully beaches there. Last year I was ill but had to stay in hospital for a week. Li

                        6.beautiful                                              7. but-and

Ming came ∧see me every day. Then his father has changed jobs and they moved to another city. Since

             8. to                                           9. 去掉 has 

then we haven't see each other. but we've kept writing to each other.

                   10. seen

多项选择题
填空题

阅读以下说明和Java代码,将应填入 (n) 处的字句写在对应栏内。

[说明]

在一公文处理系统中,开发者定义了一个公文类OfficeDoc,其中定义了公文具有的属性和处理公文的相应方法。当公文类的内容或状态发生变化时,关联此OfficeDoc类对象的相应的DocExplorer对象都要更新其自身的状态。一个OfficeDoc对象能够关联一组DocExplorer对象。当OfficeDoc对象的内容或状态发生变化时,所有与之相关联的DocExplorer对象都将得到通知,这种应用被称为观察者模式。以下代码写在一个Java源文件中,能够正确编译通过。

[Java代码]

//Subject.java文件

public interface Subject

public void attach(Observer DocExplorer);

public void detach(Observer DocExplorer);

void notifyObservers();

//Observer.Java文件

public interface Obsever(

void update( (1) );

//OfficeDoc.Java文件

import Java.util.*;

public class OfficeDoc implements Subject//OfficeDoc类实现Subject接口

private Vector ObserverVector=new Java.util.Vector();

//存储与OfficeDoc相关联的DocExplorer对象

public void attach(Obsever observer)

//将某DocExplorer对象与OfficeDoc相关联

ObserverVector.addElement(observer);

public void detach(Observer observer)

//解除某DocExplorer对象与OfficeDoc的关联关系

ObsprverVector.removeElement(observer);

public void notifyobserVers()

//当OfficeDoc对象状态已发生变化时,通知所有的DocExplorer对象

Enumeration enumeration= (2)

while(enumeration.hasMoreElements())

((Observer)enumeration.nextElement()). (3)

public Enumeration Observers()

return ObserverVector.elements();

//其他公文类的属性和方法省略

//DocExplorer.java文件

public class DocExplorer implements (4)

public void update( (5) )

//更新DocExplorer自身的状态,代码省略

 

(5)处填()。