Web Technology and Java Web Frameworks

Quiz covering web fundamentals (Internet, Web 1.0/2.0, HTTP, HTML) and Java web frameworks (JSF, Spring)

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What will be the output of this: <h:outputText value="Some text values"/>

  1. This is a text(In Bold)
  2. This is a text(In normal font)
  3. This is a text
  4. Nothing will be printed
Question 2 Multiple Choice (Multiple Answers)

Identify which DI Spring supports

  1. Setter Injection
  2. Method Injection
  3. Constructor injection
  4. Interface Injection
Question 3 Multiple Choice (Single Answer)

Can you have someother.xml file instead of applicationcontext.xml

  1. Yes,always.Spring framework will understand automatically when it will not find applicationcontext.xml
  2. No,never this can happen
  3. Yes,by specifying a <context-param> element named “contextConfigLocation" for the listener class "org.springframework.web.context.ContextLoaderListener"
  4. Yes,if we use it with JSF
Question 4 Multiple Choice (Multiple Answers)

Identify the two valid modes of auto wiring

  1. byName
  2. byFields
  3. byInterface
  4. byType
Question 5 Multiple Choice (Single Answer)

Identify which is not a Bean scopes in Spring Framework

  1. singleton
  2. prototype
  3. global session
  4. response
Question 6 Multiple Choice (Single Answer)

What is not one of the common implementations of the Application Context ?

  1. XmlWebApplicationContext
  2. RequestXmlApplicationContext
  3. ClassPathXmlApplicationContext
  4. FileSystemXmlApplicationContext
Question 7 Multiple Choice (Single Answer)

Which is not one of the Bean Scopes in JSF

  1. Global Scope
  2. Application Scope
  3. Session Scope
  4. Request Scope
Question 8 Multiple Choice (Single Answer)

What if no navigation rule matches a given action in JSF

  1. Gives an excpetion
  2. Blank Page comes up
  3. If no navigation rule matches a given action, then the current page is redisplayed
  4. Error code 404 appears
Question 9 True/False

"What will be the output of this:

  1. True
  2. False
Question 10 True/False

Can we have more than one Faces Configuration file

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

What will you to reload the page after ValueChangeListener is invoked

  1. FacesContext.getCurrentInstance().getViewRoot()
  2. FacesContext.getCurrentInstance().responseComplete()
  3. FacesContext.getCurrentInstance().renderResponse()
  4. FacesContext.getCurrentInstance().release()
Question 12 Multiple Choice (Single Answer)

What's considered the "backbone" of the World Wide Web?

  1. Uniform resource locator (URL)
  2. Browsers
  3. Hypertext transfer protocol (HTTP)
  4. Hypertext mark-up language (HTML)
Question 13 Multiple Choice (Single Answer)

What's the difference between HTTP and HTML?

  1. HTML describes what's on the page; HTTP allows sites to communicate with each other
  2. HTTP describes what's on the page; HTML allows sites to communicate with each other.
  3. nothing similar
  4. There's no difference; they mean the same thing.
Question 14 Multiple Choice (Single Answer)

Who coined the term Web 2.0?

  1. Tim O'Reilly
  2. Dale Dougherty
  3. Steve Jobs
  4. Dwight D
Question 15 Multiple Choice (Single Answer)

Which if the following is a feature of Web 1.0?

  1. Static Web sites
  2. Interactive Web sites
  3. Social networking
  4. Browsers
Question 16 Multiple Choice (Single Answer)

What's an example of a Web 1.0 site?

  1. An online bookstore that lets customers post reviews
  2. A social networking site that lets userts share photos and make public comments
  3. An official online encyclopedia
  4. Instant messaging applications
Question 17 Multiple Choice (Single Answer)

What's the best way to describe the Internet?

  1. One master computer that connects to all of our homes
  2. A network of networks
  3. An official online encyclopedia
  4. A series of pipes
Question 18 Multiple Choice (Single Answer)

We access the World Wide Web using

  1. Browsers
  2. Instant messaging applications
  3. Interactive Web sites
  4. Spidey senses
Question 19 Multiple Choice (Single Answer)

The Internet began with the development of:

  1. USENET
  2. Static Web sites
  3. ARPANET
  4. Ethernet
Question 20 Multiple Choice (Single Answer)

What will be the output of this: <h:outputText value="Some text values"/>

  1. This is a text(In Bold)
  2. This is a text(In normal font)
  3. This is a text
  4. Nothing will be printed