java hosting


JavaRanch's SCWCD Mock Exam

This mock exam is provided to aid people in the preparation for the SCWCD Exam. While the questions are hopefully of similar content, every effort has been made to ensure no question from the real exam is contained herein.

Question Bank ID : 6     Choose the 2 correct answers
A client types the URI :
http://www.someserver.com/servlet/SomeServlet?name=fred
The value of name can be obtained by:
doGet(HttpServletRequest request, HttpServletResponse response)
{
    String name = request.getParameter("name");
...
doGet(HttpServletRequest request, HttpServletResponse response)
{
    String name = request.getInitParameter("name");
...
service(HttpServletRequest request, HttpServletResponse response)
{
    String name = request.getParameter("name");
...
doGet(HttpServletRequest request, HttpServletResponse response)
{
    String name = response.getParameter("name");
...

Return to Start

JSP pages and Beans developed by Carl Trusiak
Questions developed and maintained by :
Tony Alicea
Frank Carver
Peter den Haan
Carl Trusiak
Christophe Verré
Paul Wheaton
Ken Zrobok