试题五(共15分)
阅读以下说明,回答问题1至问题3,将解答填入答题纸的对应栏内。
【说明】
小明在一家超市工作,该超市将进行整体改造,小明负责信息系统软硬件升级,他制定的工作计划如表5.1所示。
每项任务的逻辑关系和部分时间信息如图5-1所示。
【问题1】 (10分)
请根据表5-1和图5-1,计算各项任务的最迟开始时间和最迟结束时间,填充图5-1中的空(1)~(10)。
查看答案
[问题4](6分)
在本机Windows命令行中输入(8)一命令可显示当前DNS缓存,如图3-8所示。
“Record Type”字段中的值为4时,存储的记录是MX,若“Record Type”字段中的值为2时,存储的记录是(9) 。
客户端在排除DNS域名解析故障时需要刷新DNS解析器缓存,使用的命令是 (10) 。
试题六(共15分)
阅读下列说明和Java代码,将应填入(n)处的字句写在答题纸的对应栏内。
【说明】
某大型商场内安装了多个简易的纸巾售卖机,自动出售2元钱一包的纸巾,且每次仅售出一包纸巾。纸巾售卖机的状态图如图6-1所示。
采用状态(State)模式来实现该纸巾售卖机,得到如图6-2所示的类图。其中类State为抽象类,定义了投币、退币、出纸巾等方法接口。类SoldState、SoldOutState、NoQuarterState和HasQuarterState分别对应图6-1中纸巾售卖机的4种状态:售出纸巾、纸巾售完、没有投币、有2元钱。
【Java代码】
import j ava.util.*;
interface State{
public void insertQuarter(); //投币
public void ejectQuarter(); //退币
public void turnCrank();腑安下“出纸巾”按钮
public void dispense(); //出纸巾
}
class TissueMachine {
(1 ) soldOutState, noQuarterState, hasQuarterState, soldState, state;
state = soldOutState;
int count = 0; //纸巾数
public TissueMachine(intnumbers) { /*实现代码省略 */}
public StategetHasQuarterState() { returnhasQuarterState; }
public StategetNoQuarterState() { returnnoQuarterState, }
public State getSoldState() { return soldState; }
public State getSoldOutState() { return soldOutState; }
public int getCount() { return count, }
//其余代码省略
}
class NoQuarterState implements State {
TissueMachine tissueMachine;
public void insertQuarter() {
tissueMachine.setState((2));
}
//构造方法以及其余代码省略
}
class HasQuarterState implements State {
TissueMachine tissueMachine;
public void ejectQuarter() {
tissueMachine.setState ((3));
}
//构造方法以及其余代码省略
}
class SoldState implements State {
TissueMachine tissueMachine;
public void dispense() {
if(tissueMachine.getCount() > 0) {
tissueMachine.setState ((4));
} else {
tissueMachine.setState ((5)); }
}
}
In this part of the test the examiner reads out a scenario and gives you some prompt material in the form. of pictures or words. You have 30 seconds to look at the prompt card, an example of which is below, and then about 2 minutes to discuss the scenario with your partner. After that the examiner will ask you more questions related to the topic.
For two or three candidates
Scenario
I'm going to describe a situation.
Your company is planning to hold a new product launch. Talk together about the topic the company could arrange in the product launch and decide which 3 you think are most important.
Here are some ideas to help you.
Prompt material
-- Advertisement
-- Posters
-- Market prospect
-- Raw material
-- Output
-- Cost
-- Consumer
Chicago and Los Angeles have delegated responsibility for crime rates to local commanders.