Name: Online Test 01 Status: Completed Score: 40 out of 40 point(s) Instructions: Please make sure that you click on the "submit" button at the end. Thanks. Question 1 Multiple Choice 1 of 1 point(s) What happens when the button in the following form is clicked?
ID:
Your Answer: the data contained in the ID text field is passed to the grades.jsp file Question 2 Multiple Choice 1 of 1 point(s) To minimize the amount of Java code in a JSP, you Your Answer: use servlets to handle the processing requirements Question 3 Multiple Choice 1 of 1 point(s) To make classes contained in a JAR file available to Tomcat, you place the JAR file in the Your Answer: common/lib subdirectory Question 4 Multiple Choice 1 of 1 point(s) To create a drop-down list in HTML that allows a user to select only one option, you should use a ______. Your Answer: combo box Question 5 Multiple Choice 1 of 1 point(s) How many radio buttons from the following code can be selected at any given time? Home Address Office Address Federal Express UPS Your Answer: 2 Question 6 Multiple Choice 1 of 1 point(s) The web.xml file is always stored in the _______ subdirectory of an application. Your Answer: WEB-INF Question 7 Multiple Choice 1 of 1 point(s) Which of the following is a valid HTML comment? Your Answer: Question 8 Multiple Choice 1 of 1 point(s) In the code that follows, the numOfErrors variable Your Answer: is initialized only the first time the page is requested Question 9 Multiple Choice 1 of 1 point(s) To use your own Java class in a JSP, you must import the class with a Your Answer: JSP directive Question 10 Multiple Choice 1 of 1 point(s) When you start Tomcat, you execute the startup command in Tomcat’s Your Answer: bin subdirectory Question 11 Multiple Choice 1 of 1 point(s) To prevent two or more users from accessing a method at the same time, you should declare the method with the ____keyword. Your Answer: synchronized Question 12 Multiple Choice 1 of 1 point(s) The following code Your Answer: returns all values of the mail parameter or null if none exist Question 13 Multiple Choice 1 of 1 point(s) An HTTP request Your Answer: is sent from the client to the web server Question 14 Multiple Choice 1 of 1 point(s) Which of the following URLs is valid in Tomcat? Your Answer: http://localhost:8080 Question 15 Multiple Choice 1 of 1 point(s) If you obtain a Page Cannot Be Displayed error in Internet Explorer, Your Answer: the HTTP request can’t connect with the web server Question 16 Multiple Choice 1 of 1 point(s) A servlet is a Java class that Your Answer: runs on a server Question 17 Multiple Choice 1 of 1 point(s) To ensure that parameter values aren’t displayed in the URL when a JSP is requested, you should use the ________method in the Form tag. Your Answer: POST Question 18 Multiple Choice 1 of 1 point(s) The following HTML code Update Your Answer: displays Update as a hyperlink Question 19 Multiple Choice 1 of 1 point(s) Which file contains configuration data such as the port that’s used by Tomcat? Your Answer: server.xml Question 20 Multiple Choice 1 of 1 point(s) Which of the following JSP expressions is valid? Your Answer: <%= request.getParameter("occupation") %>