更多“Speaker A: Hi John, I've got a very good job offer.Speaker B:__________ A. Cong ”相关问题
  • 第1题:

    试题五(共 15 分)阅读以下说明和 Java 程序,填补代码中的空缺,将解答填入答题纸的对应 栏内。【说明】以下 Java 代码实现一个简单的聊天室系统(ChatRoomSystem),多个用 户(User)可以向聊天室( ChatRoom)发送消息,聊天室将消息展示给所有用户。 类图如图 5-1 所示。

    【Java 代码】 class ChatRoom {
    public static void showMessage(User user, Strmg message) {System.out.println("[" + user.getName() + "] : " + message);} }classUser{private String name; public String getName() { return name;}public void setName(String name) { this.name = name;}public User(String name) { (1) =name;}public void sendMessage(String message) { (2) (this, message);}}public class Chat:RoomSystem { public void startup() {
    User zhang= new User("John");User li =new User("Leo"); zhang.sendMessage("Hi! Leo! "); 1i.sendMessage("Hi! John!"); } public void join(User user) { (3) ("Hello Everyone! I am" + user.getName()); }public static void main(String[] args) { ChatRoomSystem crs= (4) ; Crs.startup();Crs.join( (5) )(“Wayne”));}}/*程序运行结果: [John]:Hi! Leol [Leo]:Hi! John![Wayne】:Hello Everyone!Iam Wayne*/


    答案:
    解析:
    1、this.name
    2、ChatRoom.showMessage
    3、user.sendMessage
    4、new ChatRoomSystem()
    5、new User

  • 第2题:

    Mary:How do you like the idea of having a picnic this Saturday?
    John:Wonderful.But?56?
    Mary:What about the Blue Mountain?It′s quite cool there.
    John:That′s a good idea.Shall we invite Michael and his girlfriend to go with us?
    Mary:Sure!It would?57?to have them with us.
    John:Good!58?
    Mary:You could buy some drinks and sandwiches.And some fruit,too.
    John:OK.59?
    Mary:How about 8 o′clock in the morning?It takes about two hours to get there.
    John:OK.I′ll call Michael and tell him about our plan.We sure will?60.

    第57题的答案是()

    A.When shall we set off
    B.What is the time
    C.have a wonderful time
    D.start packing
    E.be great fun
    F.What could I get
    G.What should I take
    H.where to

    答案:E
    解析:

  • 第3题:

    Mary:How do you like the idea of having a picnic this Saturday?
    John:Wonderful.But?56?
    Mary:What about the Blue Mountain?It′s quite cool there.
    John:That′s a good idea.Shall we invite Michael and his girlfriend to go with us?
    Mary:Sure!It would?57?to have them with us.
    John:Good!58?
    Mary:You could buy some drinks and sandwiches.And some fruit,too.
    John:OK.59?
    Mary:How about 8 o′clock in the morning?It takes about two hours to get there.
    John:OK.I′ll call Michael and tell him about our plan.We sure will?60.

    第56题的答案是()

    A.When shall we set off
    B.What is the time
    C.have a wonderful time
    D.start packing
    E.be great fun
    F.What could I get
    G.What should I take
    H.where to

    答案:H
    解析:

  • 第4题:

    Mary:How do you like the idea of having a picnic this Saturday?
    John:Wonderful.But?56?
    Mary:What about the Blue Mountain?It′s quite cool there.
    John:That′s a good idea.Shall we invite Michael and his girlfriend to go with us?
    Mary:Sure!It would?57?to have them with us.
    John:Good!58?
    Mary:You could buy some drinks and sandwiches.And some fruit,too.
    John:OK.59?
    Mary:How about 8 o′clock in the morning?It takes about two hours to get there.
    John:OK.I′ll call Michael and tell him about our plan.We sure will?60.

    第60题的答案是()

    A.When shall we set off
    B.What is the time
    C.have a wonderful time
    D.start packing
    E.be great fun
    F.What could I get
    G.What should I take
    H.where to

    答案:A
    解析:

  • 第5题:

    Mary:How do you like the idea of having a picnic this Saturday?
    John:Wonderful.But?56?
    Mary:What about the Blue Mountain?It′s quite cool there.
    John:That′s a good idea.Shall we invite Michael and his girlfriend to go with us?
    Mary:Sure!It would?57?to have them with us.
    John:Good!58?
    Mary:You could buy some drinks and sandwiches.And some fruit,too.
    John:OK.59?
    Mary:How about 8 o′clock in the morning?It takes about two hours to get there.
    John:OK.I′ll call Michael and tell him about our plan.We sure will?60.

    第58题的答案是()

    A.When shall we set off
    B.What is the time
    C.have a wonderful time
    D.start packing
    E.be great fun
    F.What could I get
    G.What should I take
    H.where to

    答案:G
    解析:

  • 第6题:

    Last Sunday had a picnic in Beihai Park.

    A.John,Mary and me
    B.John,I and Mary
    C.John,Mary and I
    D.I,John and Mary

    答案:C
    解析: