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.
Questions
Who is making the Web standards?
- The World Wide Web Consortium
- Microsoft
- IE
- Mozilla
Choose the correct HTML tag for the largest heading?
- <h6>
- <head>
- <heading>
- <h1>
What is the correct HTML for adding a background color?
- <body background="yellow">
- <background>yellow</background>
- <body style="background-color:yellow">
- <body color="background-color:yellow">
What is the correct HTML for creating a hyperlink?
- <a url="http://www.google.co.in/">Google</a>
- <a href="http://www.google.co.in/">Google</a>
- <a>http://www.google.co.in/</a>
- <a name="http://www.google.co.in/">Google</a>
How can you create an e-mail link?
- <mail href="xxx@yyy">
- <mail>xxx@yyy</mail>
- <a href="xxx@yyy">
- <a href="mailto:xxx@yyy">
How can you open a link in a new browser window?
- <a href="url" target="new">
- <a href="url" new>
- <a href="url" target="_blank">
- <a href="url" target="_newB">
What is the correct HTML for making a checkbox?
- <input type="checkbox" />
- <check>
- <input type="check" />
- <checkbox>
What is the correct HTML for inserting an image?
- <img>image.gif</img>
- <image src="image.gif" />
- <img src="image.gif" />
- <img href="image.gif />
What is the correct HTML for inserting a background image?
- <background img="background.gif">
- <img src background="background.gif" background />
- <body background="background.gif">
- <img src="background.gif" background />
DAO Design Pattern solves the problem of encapsulating details of connecting to which of the following data sources?
- RDBMS
- LDAP
- XML/Flat files
- All of them
In case your application is completely based on Container Managed Persistence, would you still like to go for DAO design pattern?
- True
- False
DAO pattern can be implemented to perform all the CRUD operations
- True
- False
Out of the following, which interface, would one have to implement to implement an intercepting filter?
- Javax.servlet.Filter
- Javax.servlet.FilterChain
- Javax.servlet.FilterConfig
- None of the above
Which of the following tags are used for implementing Composite view pattern?
- <jsp:include ….>
- <%include …%>
- All of the above
- None of the above
A Transfer Object class necessarily would have to implement java.io.serializable in order for it to be passed over the network.
- True
- False
Which of the following patterns provide coarse grained access to business tier?
- Business Delegate
- Session Façade
- Transfer Object
- None of the above
Transfer Object Pattern can be used for updating data as well on business tier of an application?
- True
- False
Using include tag improves performance of rendering a page as compared to using include directive?
- True
- False
Front Controller design pattern is implemented through implementing which of the following interfaces?
- javax.servlet.ServletConfig
- javax.servlet.Servlet
- javax.servlet.ServletContext
- All of the above
Business Delegate pattern utilizes Service Locator pattern to encapsulate lookup and access of remote services like EJB, web services and others
- True
- False