题目内容

Question 25 is based on the following news. At the end of the news item, you will be given 10 seconds to answer the question. Now listen to the news According to the news, France was strongly criticized for ()

A. conducting five nuclear tests on Wednesday.
B. carrying out a series of nuclear tests in the Pacific.
C. getting disappointing results in the nuclear program.
D. refusing to sign a global treaty banning nuclear tests.

查看答案
更多问题

2()

A. became
B. equipped
C. posed
D. provided

We see advertisements on television every day. Some people think that TV advertising brings us benefits, but others don’t think so. What is your opinion Write a composition of about 150 words on the following topic: A MAJOR ADVANTAGE/DISADVANTAGE OF ADVERTISING ON TELEVISIONYou are to write in three paragraphs.In the first paragraph, state just ONE major advantage or disadvantage of TV advertising.In the second paragraph, give one or two reasons to support your point of view.In the last paragraph, bring what you have written to a natural conclusion.Marks will be awarded for content, organization, grammar and appropriacy. Failure to follow the instructions may result in a loss of marks.

How well did the speaker do in the test()

A. He answered the last four questions.
B. He answered the last few questions first.
C. He answered only some of the questions.
D. He answered all the questions except the first.

[Java 源程序:一个简单的Web服务器]/************************************************************//* WebServer.java* //************************************************************/package objclass;import java.net. * ;import java.io. * ;public class WebServer {public static final int PORT=8080; //Web 服务器侦听的端口号public static final String WEB_ROOT=System.getProperty(“user。dir”)+File.separator+“webroot”;//WEB_ROOT 变量存放Web服务器工作目录,该目录存放HTML、GIF图片等静态文件资源private static final String SHUTDOWN_COMMAND=“/shutdown”;//SHUTDOWN_COMMAND变量保存关闭服务器的命令private boolean shutdown=falset //是否收到关闭服务器命令的标志public static void main(String[] args) {WebServer server=new WebServer();server.await();}public void await(){Serversocbet serverSocket=nulltry{serversocket=new (1) ; //创建侦听端口号为PORT的Serversocket类型的对象System.out.println(“WebServer Started!”);}cateh(10Exceptione){e.printStackTrace();System.exit(1);}while(! shutdown) { //循环等待客户端连接Socket socket=nullInputStream input=null;OutputStream output=null;try{socket= (2) ; //创建来自客户端的连接套接宇input=SOCket. (3) , //创建输入流output=SOCket. (4) //创建输出流Request request=new Request(input); //创建Request对象request. (5) ; //解析客户端HTTP请求Responseresponse=new Response(output); //创建Response对象response.setRequest(request); //将Request对象传递给Response对象response (6) ; //给客户端发送所请求的静态资源(7) , //关闭连接套接字shutdown=request. (8) .equals(SHUTDOWN_COMMAND);//判断当前HTTP请求中的URI是否是关闭服务器命令}}}}/************************************************************// * Request.java *//************************************************************/package objclass;import java.io.InputStream;import java.io.IOException;public class Request {private InputStream input;private String uri;public Request(InputStream input) { this.input=input;}public void parse() {... parseUri();...} //解析客户端HTTP请求消息private String parseUri(String requestString) {... } //解析客户端HTTP请求中的URIpublic String getUri() {return uri;}}/************************************************************// * Response.java *//************************************************************/package objclass;import java.io. * ;public class Response {private static final int BUFFER_SIZE=1024;Request request;OutputStream output;OutputStream output;public Response(OutputStream output) {this.output=output;}public void setRequest(Request request) {this.requdst=request;}public void sendStaticResouree() throws IOException{... } //向客户端发送所请求的表态源}[运行测试]在本机运行WebServer程序,然后打开n浏览器。(1)在IE地址栏中,输入请求“/index.html"页面的命令: (9) ;(2)在IE地址栏中,输入关闭Web服务器的命令: (10) 。

答案查题题库