Web Technology and Java Web Frameworks
Quiz covering web fundamentals (Internet, Web 1.0/2.0, HTTP, HTML) and Java web frameworks (JSF, Spring)
Questions
What will be the output of this: <h:outputText value="Some text values"/>
- This is a text(In Bold)
- This is a text(In normal font)
- This is a text
- Nothing will be printed
Identify which DI Spring supports
- Setter Injection
- Method Injection
- Constructor injection
- Interface Injection
Can you have someother.xml file instead of applicationcontext.xml
- Yes,always.Spring framework will understand automatically when it will not find applicationcontext.xml
- No,never this can happen
- Yes,by specifying a <context-param> element named “contextConfigLocation" for the listener class "org.springframework.web.context.ContextLoaderListener"
- Yes,if we use it with JSF
Identify the two valid modes of auto wiring
- byName
- byFields
- byInterface
- byType
Identify which is not a Bean scopes in Spring Framework
- singleton
- prototype
- global session
- response
What is not one of the common implementations of the Application Context ?
- XmlWebApplicationContext
- RequestXmlApplicationContext
- ClassPathXmlApplicationContext
- FileSystemXmlApplicationContext
Which is not one of the Bean Scopes in JSF
- Global Scope
- Application Scope
- Session Scope
- Request Scope
What if no navigation rule matches a given action in JSF
- Gives an excpetion
- Blank Page comes up
- If no navigation rule matches a given action, then the current page is redisplayed
- Error code 404 appears
"What will be the output of this:
- True
- False
Can we have more than one Faces Configuration file
- True
- False
What will you to reload the page after ValueChangeListener is invoked
- FacesContext.getCurrentInstance().getViewRoot()
- FacesContext.getCurrentInstance().responseComplete()
- FacesContext.getCurrentInstance().renderResponse()
- FacesContext.getCurrentInstance().release()
What's considered the "backbone" of the World Wide Web?
- Uniform resource locator (URL)
- Browsers
- Hypertext transfer protocol (HTTP)
- Hypertext mark-up language (HTML)
What's the difference between HTTP and HTML?
- HTML describes what's on the page; HTTP allows sites to communicate with each other
- HTTP describes what's on the page; HTML allows sites to communicate with each other.
- nothing similar
- There's no difference; they mean the same thing.
Who coined the term Web 2.0?
- Tim O'Reilly
- Dale Dougherty
- Steve Jobs
- Dwight D
Which if the following is a feature of Web 1.0?
- Static Web sites
- Interactive Web sites
- Social networking
- Browsers
What's an example of a Web 1.0 site?
- An online bookstore that lets customers post reviews
- A social networking site that lets userts share photos and make public comments
- An official online encyclopedia
- Instant messaging applications
What's the best way to describe the Internet?
- One master computer that connects to all of our homes
- A network of networks
- An official online encyclopedia
- A series of pipes
We access the World Wide Web using
- Browsers
- Instant messaging applications
- Interactive Web sites
- Spidey senses
The Internet began with the development of:
- USENET
- Static Web sites
- ARPANET
- Ethernet
What will be the output of this: <h:outputText value="Some text values"/>
- This is a text(In Bold)
- This is a text(In normal font)
- This is a text
- Nothing will be printed