HTML, CSS and Servlets Fundamentals

Test your knowledge of basic HTML/CSS syntax and Java servlets for web development

17 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

The Web server that executes the servlet creates an _________ object and passes this to the servlet's service method (which, in turn, passes it to doGet or doPost).

  1. HttpServletResponce
  2. HttpRequest
  3. ServletRequest
  4. HttpServletRequest
Question 2 Multiple Choice (Single Answer)

The client can access the servlet only if the servlet is installed on a ________ that can respond to servlet requests

  1. CLIENT
  2. SERVER
  3. INTERNET
  4. IN LOCAL PC
Question 3 Multiple Choice (Single Answer)

Which of the following describe ways that dynamic information can be made available to all servlet requests sent to an application?

  1. Make the information available from a singleton
  2. Store the information in the ServletContext
  3. Store the information in an HttpSession
  4. Store the information in a Properties file
Question 4 Multiple Choice (Single Answer)

Which of the following can be used to store client side user state information while avoiding any impact due to the users web browser configuration ?

  1. Cookies
  2. URL rewriting
  3. HttpSessions
  4. Hidden tags
Question 5 Multiple Choice (Single Answer)

Which of the following is NOT true about servlets?

  1. They are instantiated every time a request is made
  2. They are a mechanism used by the class loader to download applets
  3. They can be used instead of CGI scripts
  4. They require a web browser that supports JDK 1.1
Question 6 Multiple Choice (Single Answer)

What is servlet?

  1. Client side program
  2. Server side program
  3. Both are true
  4. None of these
Question 7 Multiple Choice (Single Answer)

HTML REFERS TO

  1. Hyperlinks and Text Markup Language
  2. Hyper Text Markup Language
  3. Hyper Text Markinup Language
  4. All of the above
Question 8 Multiple Choice (Single Answer)

What is the syntax to write the HTML tags ?

  1. <HTML>
  2. HTML
  3. <%HTML%>
  4. "HTML"
Question 9 Multiple Choice (Single Answer)

What is the correct HTML tag for inserting an horizontal line?

  1. <line>
  2. <hr>
  3. <tr>
  4. <horizontalline>
Question 10 Multiple Choice (Single Answer)

Tags and text that do not show directly on the page are placed where?

  1. Body
  2. Table
  3. Title
  4. Head
Question 11 Multiple Choice (Single Answer)

How do you define font style of the text?

  1. <style="Arial">
  2. <text=Arial>
  3. <font style="Arial"></font>
  4. <text style="Arial">
Question 12 Multiple Choice (Single Answer)

What is the file extension used for HTML file?

  1. .html
  2. .shtml
  3. .webpage
  4. .doc
Question 13 Multiple Choice (Single Answer)

Besides , another way to make text bold is what?

  1. <fat>
  2. <dark>
  3. <italic>
Question 14 Multiple Choice (Single Answer)

To create a bulleted list use?

  1. <ol>
  2. <il>
  3. <bullet>
  4. <ul>
Question 15 Multiple Choice (Single Answer)

Which is not valid HTML?

  1. <frameset columns="16%,84%">
  2. <frameset rows="16%,84%">
  3. <frameset table="100,100">
  4. <frameset cols="100,150">
Question 16 Multiple Choice (Single Answer)

Which HTML attribute is used to define inline styles?

  1. styles
  2. class
  3. font
  4. style
Question 17 Multiple Choice (Single Answer)

What is the correct CSS syntax for making all the

elements bold?

  1. p {font-weight:bold}
  2. p {text-size:bold}
  3. <p style="text-size:bold">
  4. <p style="font-size:bold">