复旦大学:《Web应用基础》教学资源_课程样题(参考答案)

Answer 1. Choose the best answer (a, b, c or d) for each of the following questions. (1)d.(2)c.(3)a.(4)d.(5)c.(6)d.(⑦)b.(8)b.(9)d.(l0)d. (11)a.(12)c.(13)a.(14)b.(15)b.(16)d.(17)b.(18)c.(19)d.(20)a (21)c.(22)d.(23)c.(24)a.(25)c.(26)d.(27)c.(28)b.(29)d.(30)a 2. Question. ( 1)As a simplification, we might say that"GET"is basically for just getting(retrieving) data whereas"POST" may involve anything, like storing or updating data, or ordering a product, or sending E-mail The GET method appends name/value pairs to the URL. The length of a URL is limited, so this method only works if there are only a few parameters. The URL could be truncated if the form uses a large number of parameters, or if the parameters contain large amounts of data. Also parameters passed on the UrL are visible in the address field of the browser not the best place for password to be displayed The alternative to the GEt method is the POST method. This method packages the name/value pairs inside the body of the Http request which makes for a cleaner Url and imposes no size limitations on the forms output. It is also more secure (2)MVC: Model-View-Controller architecture REQUEST Http Browser Reponse JAVA SERVLET Controller Web Report Model Database Figure 1. mvc works with JSP The Model-View-Controller architecture works with JSP(Figure 1). In fact it makes the initial implementation a little easier to write. The controller object is master Servlet. Every request goes through the controller who retrieves the necessary model object. The model may interact with other business entities such as databases or JavaBean. The model object sends the output results back to the controller. The controller takes the results and places it inside the web browser session and forwards a redirect request to a particular Java Server Page The JSP, in the case, is the view (3)One way is to resize it out of existence by setting either the width or height to zero. You can lso clip the element to the top, bottom, left or right. You can also hide it by setting visibility to
Answer 1. Choose the best answer (a, b, c or d) for each of the following questions. (1) d. (2) c. (3) a. (4) d. (5) c. (6) d. (7) b. (8) b. (9) d. (10) d. (11) a. (12) c. (13) a. (14) b. (15) b. (16) d. (17) b. (18) c. (19) d. (20) a. (21) c. (22) d. (23) c. (24) a. (25) c. (26) d. (27) c. (28) b. (29) d. (30) a. 2. Question. (1) As a simplification, we might say that "GET" is basically for just getting (retrieving) data whereas "POST" may involve anything, like storing or updating data, or ordering a product, or sending E-mail. The GET method appends name/value pairs to the URL. The length of a URL is limited, so this method only works if there are only a few parameters. The URL could be truncated if the form uses a large number of parameters, or if the parameters contain large amounts of data. Also, parameters passed on the URL are visible in the address field of the browser not the best place for a password to be displayed. The alternative to the GET method is the POST method. This method packages the name/value pairs inside the body of the HTTP request, which makes for a cleaner URL and imposes no size limitations on the forms output. It is also more secure. (2) MVC: Model-View-Controller architecture. Figure 1. MVC works with JSP The Model-View-Controller architecture works with JSP (Figure 1). In fact it makes the initial implementation a little easier to write. The controller object is master Servlet. Every request goes through the controller who retrieves the necessary model object. The model may interact with other business entities such as databases or JavaBean. The model object sends the output results back to the controller. The controller takes the results and places it inside the web browser session and forwards a redirect request to a particular Java Server Page. The JSP, in the case, is the view. (3) One way is to resize it out of existence by setting either the width or height to zero. You can also clip the element to the top, bottom, left or right. You can also hide it by setting visibility to

hidden, or turn off the display. Finally, you can make it move off the page, or move another element in front of it (4)Fill in the blanks (a) Red (b)Teal (c) Purple (d) Gray (e)olive (5)SQL Sta (a)SELECT employee employee-name, works. salary FROM employee, works WHERE employee employee- or SELECT employee-name, salary FROM works (b)SELECT employee employee-name FROM employee, works, branch WhERE employee. city works city and works. branch-name= branch branch-name and employee employee-name works employee-name (c)selECT branch-name, COUNT()as numbers FROM works GROUP BY branch-name ORDER BY numbers DESC LIMit 1 (d) UPDATE employee SeT city ='Beijing'WhERE employee-name = Jones (e) UPDATE works SET salary salary *1. I WhERE salary * 1. 1 120000
hidden, or turn off the display. Finally, you can make it move off the page, or move another element in front of it. (4) Fill in the blanks (a) Red (b) Teal (c) Purple (d) Gray (e) Olive (5) SQL statements (a) SELECT employee.employee-name, works.salary FROM employee, works WHERE employee.employee- name = works.employee- name or SELECT employee-name, salary FROM works (b) SELECT employee.employee-name FROM employee, works, branch WHERE employee.city = works.city and works.branch-name = branch.branch-name and employee.employee-name = works.employee-name (c) SELECT branch-name, COUNT(*) as numbers FROM works GROUP BY branch-name ORDER BY numbers DESC LIMIT 1 (d) UPDATE employee SET city = 'Beijing' WHERE employee-name = 'Jones' (e) UPDATE works SET salary = salary * 1.1 WHERE salary * 1.1 '120000
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 复旦大学:《Web应用基础》教学资源_课程样题(习题).pdf
- 复旦大学:《数据库系统引论》PPT教学课件_分布式数据库系统.ppt
- 复旦大学:《数据库系统引论》PPT教学课件_系统实现技术(二).ppt
- 复旦大学:《数据库系统引论》PPT教学课件_系统实现技术(一).ppt
- 复旦大学:《数据库系统引论》PPT教学课件_查询处理.ppt
- 复旦大学:《数据库系统引论》PPT教学课件_数据库存储结构.ppt
- 复旦大学:《数据库系统引论》PPT教学课件_数据库设计和ER模型.ppt
- 复旦大学:《数据库系统引论》PPT教学课件_数据库安全与安全数据库.ppt
- 复旦大学:《数据库系统引论》PPT教学课件_关系数据库语言SQL.ppt
- 复旦大学:《数据库系统引论》PPT教学课件_关系模型和关系运算理论.ppt
- 复旦大学:《数据库系统引论》PPT教学课件_数据库概论.ppt
- 复旦大学:《数据库系统》学生数据库设计(MIS)论文_14.谢洁琼——中学学籍管理系统.doc
- 复旦大学:《数据库系统》学生数据库设计(MIS)论文_13.包学锋——出租车公司信息管理系统.doc
- 复旦大学:《数据库系统》学生数据库设计(MIS)论文_12.王慧平——上海市印刷七厂药务管理信息系统.doc
- 复旦大学:《数据库系统》学生数据库设计(MIS)论文_11.周颖——中学教务管理系统.doc
- 复旦大学:《数据库系统》学生数据库设计(MIS)论文_10.李建蓉——资料管理信息系统.doc
- 复旦大学:《数据库系统》学生数据库设计(MIS)论文_9.樊庆萍——图书借阅管理系统.doc
- 复旦大学:《数据库系统》学生数据库设计(MIS)论文_8.孙建英——库存管理信息系统.doc
- 复旦大学:《数据库系统》学生数据库设计(MIS)论文_7.王菻华——进口货代管理信息系统.doc
- 复旦大学:《数据库系统》学生数据库设计(MIS)论文_6.缪晶——进销存管理系统.doc
- 复旦大学:《Web应用基础》实验练习_Lab01.pdf
- 复旦大学:《Web应用基础》实验练习_Lab02.pdf
- 复旦大学:《Web应用基础》实验练习_Lab03.pdf
- 复旦大学:《Web应用基础》实验练习_Lab04.pdf
- 复旦大学:《Web应用基础》实验练习_Lab05.pdf
- 复旦大学:《Web应用基础》实验练习_Lab06.pdf
- 复旦大学:《Web应用基础》实验练习_Lab07.pdf
- 复旦大学:《Web应用基础》实验练习_Lab08.pdf
- 复旦大学:《Web应用基础》实验练习_Lab09.pdf
- 复旦大学:《Web应用基础》实验练习_Lab10.pdf
- 复旦大学:《Web应用基础》教学课件_Chapter 1 Introduction.pdf
- 复旦大学:《Web应用基础》教学课件_Chapter 2 HTML.pdf
- 复旦大学:《Web应用基础》教学课件_Chapter 3 CSS.pdf
- 复旦大学:《Web应用基础》教学课件_Chapter 4 HTML & CSS.pdf
- 复旦大学:《Web应用基础》教学课件_Chapter 5 JavaScript.pdf
- 复旦大学:《Web应用基础》教学课件_Chapter 6 JavaServerPages.pdf
- 复旦大学:《Web应用基础》教学课件_Chapter 7 Database.pdf
- 复旦大学:《Web应用基础》教学课件_Chapter 8 Ajax.pdf
- 复旦大学:《Web应用基础》教学课件_Chapter 9 Future.pdf
- 复旦大学:《面向对象分析和设计》课程资料_IBatis Charpter 3 DAO IMPLEMENTATION.ppt