Question 1 Multiple Choice 1 of 1 point(s) Persistent cookies Your Answer: exist after the session ends Question 2 Multiple Choice 1 of 1 point(s) A servlet class that’s used in a web application extends the Your Answer: HttpServlet class Question 3 Multiple Choice 1 of 1 point(s) Cookies are stored Your Answer: on the client Question 4 Multiple Choice 1 of 1 point(s) By default, the servlet API uses a ______ to store a session ID. Your Answer: cookie Question 5 Multiple Choice 1 of 1 point(s) When you code an application with MVC, you try to Your Answer: perform all data validation on the client Question 6 Multiple Choice 1 of 1 point(s) To uniquely identify each row in a table, a relational database uses a Your Answer: primary key Question 7 Multiple Choice 1 of 1 point(s) The current session object in a servlet Your Answer: is retrieved from the HttpSession class Question 8 Multiple Choice 1 of 1 point(s) The value of an initialization parameter is retrieved Your Answer: in the init method of a servlet Question 9 Multiple Choice 1 of 1 point(s) When the show_times JSP is requested with the following statement, the show_times JSP response.sendRedirect("/schedule/times/show_times.jsp"); Your Answer: has access to the response object Question 10 Multiple Choice 1 of 1 point(s) The init method of a servlet class is called Your Answer: the first time a servlet is requested but before the service method Question 11 Multiple Choice 1 of 1 point(s) The result set retrieved by the following SELECT statement contains records that have SELECT Balance, Num FROM Accounts WHERE Balance < 0 Your Answer: two fields from the Accounts table where Balance is less than 0 Question 12 Multiple Choice 1 of 1 point(s) Which of the following URLs is a valid request for a servlet named TimeServlet stored in the times package of the root directory? Your Answer: http://www.mycompany.com/servlet/times.TimeServlet Question 13 Multiple Choice 1 of 1 point(s) The following code from a servlet class: System.out.println("Check with system administrator"); Your Answer: displays text in a JSP page Question 14 Multiple Choice 1 of 1 point(s) The methods of what type of object can be used to move the cursor through a result set? Your Answer: Connection Question 15 Multiple Choice 1 of 1 point(s) The controller of an application designed with MVC is a Your Answer: servlet Question 16 Multiple Choice 1 of 1 point(s) The following Anchor tag demonstrates how to use View your schedule Your Answer: URL encoding Question 17 Multiple Choice 1 of 1 point(s) Which of the following statements will delete all records from the Invoices table that have a value of 0 in the InvoiceTotal field? String query = "DELETE FROM Invoices " + "WHERE InvoiceTotal = 0 "; Statement statement = connection.createStatement(); Your Answer: statement.delete(query); Question 18 Multiple Choice 1 of 1 point(s) When an HTML page requests a servlet with the HTTP Post method, the ______ method of the servlet class is called. Your Answer: doPost() Question 19 Multiple Choice 1 of 1 point(s) Which of the following statements is invalid? Your Answer: session.setAttribute("fullName", "Ted Andrews"); Question 20 Multiple Choice 1 of 1 point(s) The current session object is available to Your Answer: only servlets