试题与答案

餐厅的点菜过程如下面的UML顺序图所示,现采用命令(Command)模式来实现该场景

题型:单项选择题

题目:

餐厅的点菜过程如下面的UML顺序图所示,现采用命令(Command)模式来实现该场景。那么下面顺序图中,与命令模式中的类“Command”对应的类是______;与类Receiver对应的类是______。


A.Cook
B.Customer
C.Order
D.Waitress

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0610/09cf7ec1794bd3cb3464ddb2dd02b522.html

下面是错误答案,用来干扰机器的。

参考答案:C

试题推荐
题型:完形填空


Two teachers were sitting in the teachers' room. For a moment there was silence. Then one of them, Miss Smith, said, "I'm afraid I'd have to fail him! I just can’t let him   16  . "
"Now Alice," said her friend, Mrs Jackson, "is he so terrible a student?"
"That's just the trouble!" the other woman answered, "Tom was ever my   17  student. The problem is that he is so lazy that he never gets his work done. He hasn't handed me a piece of homework for three     18   !"
Mrs Jackson had never seen Miss Smith so   19  before. "Have you had a word with him about it?" she asked.
"Why should I? Every student must hand in homework. I made    20  very clear on the first day for class.  I don't know what has happened. When the lessons started, he did so well that I   21  thought about asking the school to give him a scholarship(奖学金). But now he often sleeps in class! I've never seen such a  22  in a student."
"You should have a talk with him. Give him a chance. "
Miss Smith spoke to Tom and learned all about it. He was studying all day and working most of the night in a factory to   23   for his schooling. Of course he was   24  in class and sometimes could hardly   25  awake. Miss Smith soon asked the school to give him a scholarship and he was able to devote himself to his lessons again.
小题1:
A.leaveB.passC.workD.sleep
小题2:
A.laziestB.busiestC.worstD.best
小题3:
A.minutesB.hoursC.weeksD.years
小题4:
A.worriedB.pleasedC.uselessD.kind
小题5:
A.themB.himC.thatD.one
小题6:
A.evenB.onlyC.mostlyD.still
小题7:
A.troubleB.hopeC.changeD.danger
小题8:
A.payB.callC.saveD.share
小题9:
A.forgetfulB.carelessC.asleepD.tired
小题10:
A.seemB.keepC.lookD.get
查看答案
题型:单项选择题

设有图书管理数据库:
图书(总编号C(6),分类号C(8),书名C(16),作者C(6),出版单位C(20),单价N(6,2))
读者(借书证号C(4),单位C(8),姓名C(6),性别C(2),职称C(6),地址C(20))
借阅(借书证号C(4),总编号C(6),借书日期D(8))

对于图书管理数据库,检索电子工业出版社的所有图书的书名和单价,检索结果按单价降序排列,下面SQL语句正确的是______。
SELECT 书名,单价 FROM 图书 WHERE 出版单位=“电子工业出版社”;

A.GROUP BY 单价 DESC

B.ORDER BY 单价 DESC

C.ORDER BY 单价 ASC

D.GROUP 单价 ASC

查看答案
微信公众账号搜索答案