Tag: web technology

Questions Related to web technology

Identify which DI Spring supports

  1. Setter Injection

  2. Method Injection

  3. Constructor injection

  4. Interface Injection


Correct Option: A,C
  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 element named “contextConfigLocation" for the listener class "org.springframework.web.context.ContextLoaderListener"

  4. Yes,if we use it with JSF


Correct Option: C

Identify the two valid modes of auto wiring

  1. byName

  2. byFields

  3. byInterface

  4. byType


Correct Option: A,D

Identify which is not a Bean scopes in Spring Framework

  1. singleton

  2. prototype

  3. global session

  4. response


Correct Option: D

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

  1. XmlWebApplicationContext

  2. RequestXmlApplicationContext

  3. ClassPathXmlApplicationContext

  4. FileSystemXmlApplicationContext


Correct Option: B

Which is not one of the Bean Scopes in JSF

  1. Global Scope

  2. Application Scope

  3. Session Scope

  4. Request Scope


Correct Option: A
  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


Correct Option: C

"What will be the output of this:

  1. True

  2. False


Correct Option: A

Can we have more than one Faces Configuration file

  1. True

  2. False


Correct Option: A

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()


Correct Option: C