Java EE Design Patterns & HTML

Covers core Java EE design patterns (Business Delegate, Front Controller, Session Facade, Transfer Object, DAO, Composite View, Intercepting Filter) and fundamental HTML elements.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Who is making the Web standards?

  1. The World Wide Web Consortium
  2. Microsoft
  3. IE
  4. Mozilla
Question 2 Multiple Choice (Single Answer)

Choose the correct HTML tag for the largest heading?

  1. <h6>
  2. <head>
  3. <heading>
  4. <h1>
Question 3 Multiple Choice (Single Answer)

What is the correct HTML for adding a background color?

  1. <body background="yellow">
  2. <background>yellow</background>
  3. <body style="background-color:yellow">
  4. <body color="background-color:yellow">
Question 4 Multiple Choice (Single Answer)

What is the correct HTML for creating a hyperlink?

  1. <a url="http://www.google.co.in/">Google</a>
  2. <a href="http://www.google.co.in/">Google</a>
  3. <a>http://www.google.co.in/</a>
  4. <a name="http://www.google.co.in/">Google</a>
Question 5 Multiple Choice (Single Answer)

How can you create an e-mail link?

  1. <mail href="xxx@yyy">
  2. <mail>xxx@yyy</mail>
  3. <a href="xxx@yyy">
  4. <a href="mailto:xxx@yyy">
Question 6 Multiple Choice (Single Answer)

How can you open a link in a new browser window?

  1. <a href="url" target="new">
  2. <a href="url" new>
  3. <a href="url" target="_blank">
  4. <a href="url" target="_newB">
Question 7 Multiple Choice (Single Answer)

What is the correct HTML for making a checkbox?

  1. <input type="checkbox" />
  2. <check>
  3. <input type="check" />
  4. <checkbox>
Question 8 Multiple Choice (Single Answer)

What is the correct HTML for inserting an image?

  1. <img>image.gif</img>
  2. <image src="image.gif" />
  3. <img src="image.gif" />
  4. <img href="image.gif />
Question 9 Multiple Choice (Single Answer)

What is the correct HTML for inserting a background image?

  1. <background img="background.gif">
  2. <img src background="background.gif" background />
  3. <body background="background.gif">
  4. <img src="background.gif" background />
Question 10 Multiple Choice (Single Answer)

DAO Design Pattern solves the problem of encapsulating details of connecting to which of the following data sources?

  1. RDBMS
  2. LDAP
  3. XML/Flat files
  4. All of them
Question 11 True/False

In case your application is completely based on Container Managed Persistence, would you still like to go for DAO design pattern?

  1. True
  2. False
Question 12 True/False

DAO pattern can be implemented to perform all the CRUD operations

  1. True
  2. False
Question 13 Multiple Choice (Single Answer)

Out of the following, which interface, would one have to implement to implement an intercepting filter?

  1. Javax.servlet.Filter
  2. Javax.servlet.FilterChain
  3. Javax.servlet.FilterConfig
  4. None of the above
Question 14 Multiple Choice (Single Answer)

Which of the following tags are used for implementing Composite view pattern?

  1. <jsp:include ….>
  2. <%include …%>
  3. All of the above
  4. None of the above
Question 15 True/False

A Transfer Object class necessarily would have to implement java.io.serializable in order for it to be passed over the network.

  1. True
  2. False
Question 16 Multiple Choice (Single Answer)

Which of the following patterns provide coarse grained access to business tier?

  1. Business Delegate
  2. Session Façade
  3. Transfer Object
  4. None of the above
Question 17 True/False

Transfer Object Pattern can be used for updating data as well on business tier of an application?

  1. True
  2. False
Question 18 True/False

Using include tag improves performance of rendering a page as compared to using include directive?

  1. True
  2. False
Question 19 Multiple Choice (Single Answer)

Front Controller design pattern is implemented through implementing which of the following interfaces?

  1. javax.servlet.ServletConfig
  2. javax.servlet.Servlet
  3. javax.servlet.ServletContext
  4. All of the above
Question 20 True/False

Business Delegate pattern utilizes Service Locator pattern to encapsulate lookup and access of remote services like EJB, web services and others

  1. True
  2. False