- 24
- 0
- 约1.18万字
- 约 30页
- 2018-07-08 发布于湖北
- 举报
美斯坦福在线考试系统(Standford online examination system)
美斯坦福在线考试系统(Standford online examination system)American Standford online exam system testSubject: SCCEG2JSP total score: 100 minutes: 60 minutesFirst, a radio question (45 questions, 2 points each): choose a correct answer1,The Web application uses () protocol communication, which is the () protocolA, HTTP, statelessB, HTTP, statefulC, FTP, statelessD, FTP, statefulReference: A2,Browse the Web web service. The default port number is ()A, 80B, 8181C, 25D, 1433Reference: A3,In J2EE, if the web applications document root is book, the class file com.util.test.class should be in the () directoryA, book / class / COM / util / test.classB, book / WEB-INF / COM / util / test.classC, book / WEB-INF / classes / COM / util / test.classD, book / WEB-INF / lib / classes / COM / util / test.classReference: C4,The code that gets the request property named name value is ()A, request.setAttribute (name)B, request.getAttribute (name)C, request.getParameter (name)D, response.getParameter (name)Reference: B5,In J2EE, the code that specifies a Servlet is compiled and run as follows. The following statement is correct ()Public, class, Servletl, extends, HttpServlet{Public, void, init (), throws, ServletException{}Public void service (HttpServletRequestRequest, HttpServletResponse, response) throwsServletException, IOException{PrintWriter, out=response.getWriter ();Out.println (Hello!);}}A, when compiling the file, indicates that the doGet () or doPost () method is missing and that the compilation cannot succeedB, compile, put the Servletl.class in the right place, run the Servlet, and see the output text in the browser: hello!C, after compiling, put Servletl.class in the right place and run the Servlet, and no output text can be seen in the browserD, compiles, puts the Servletl.class in the right place, runs the Servlet, and sees runtime error information in the browserReference: B6,Given a code snippet of Servlet, as follows:Public void doGet (HttpServerletRequestRequest, HttpServletRes
原创力文档

文档评论(0)