Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Multiple Choice Identify the choice that best completes the statement or answers

ID: 3527416 • Letter: M

Question

Multiple Choice Identify the choice that best completes the statement or answers the question. ____ 1. The METHOD attribute determines which of two ways, _________, the browser will use to send information to the server. a. INPUT or OUTPUT c. FROM or TO b. POST or GET d. none of the above ____ 2. Each control in a form must have a(n) ________. The data entered by the user is retrieved by referencing the name of its control field. a. TYPE c. INPUT b. NAME d. FORM ____ 3. Your major is: <%= request.getParameter("major") %>The above code retrieves the value associated with the name "______" and displays this value in the browser. a. request c. major b. getParameter d. none of the above ____ 4. In JSP, all statements must end with a _____. a. . c. , b. ; d. / ____ 5. Which of the following has the correct syntax to declare a variable? a. String 4; c. String 4-s; b. String s; d. String 4&s;

Explanation / Answer

answer-1) b. POST or GET
answer-2) a. TYPE
answer-3) c. major
answer-4) b. ;
answer-5) b. String s