Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

JavaServer Faces Test Assessment

Topics Covered

  • Facelets and XHTML files in JSF 2
  • Requested Scoped in JSF 2
  • Session and Application Scoped in JSF 2
  • Backing Beans

Useful for hiring

  • JSF Developer 
  • Java Developer - JSF

Start hiring job-fit candidates using this assessment

GET A DEMO

"We realized that to acquire quality talent, our recruitment process was in dire need of automation. Too many of our technicalteam were simply wasting hours conducting interviews that did not yield the desired results. For us the foremost criteria were to finda recruitment partner who could tick all the right boxes"

Rehana Nisar, Gartner,
Global Product & Services Recruitment Head
Question

Consider the following code:


userBean
com.finance.UserBean
request


How can we simplify the code above to create the Managed Bean: "UserBean"?

Answer
    • @Bean(name=”userBean”)
      @RequestScoped
      public class UserBean {…}

    • @Bean(value=”userBean”)
      @RequestScope
      public class UserBean {…}

    • @Named
      @RequestScoped
      public class UserBean {…}

    • @ManagedBean(name=”userBean”)
      @RequestScoped
      public class UserBean {…}

Question

The main page must implement a button on the top of the page to finish and log out the system. Which of the following options implements this logout code in Managed Bean?

Answer
    • public String logoutSystem() {
          FacesContext context = FacesContext.getCurrentInstance();
          HttpSession session = (HttpSession) context.getContext().getSession(false);
          session.invalidate();
          return "pageLogin";
      }

    • public String logoutSystem() {
          FacesContext context = FacesContext.getCurrentInstance();
          HttpSession session = (HttpSession) context.getExternalContext().session(false);
          session.invalidate();
          return "pageLogin";
      }

    • public String logoutSystem() {
          FacesContext context = FacesContext.getCurrentInstance();
          HttpSession session = (HttpSession) context.getExternalContext().getSession(false);
          session.invalidate();
          return "pageLogin";
      }

    • public String logoutSystem() {
          FacesContext context = FacesContext.getCurrentInstance();
          HttpSession session = (HttpSession) context.getExternalContext().getSession(false);
          session.disable();
          return "pageLogin";
      }

Question

Which are the two main methods of the Converter interface?

Answer
    • getObject and getString

    • getFromObject and getFromString

    • getAsXhtml and getAsXml

    • getAsObject and getAsString

Test details:

JSF online test enables employers and recruiters to identify potential hires by evaluating working skills and job readiness. For this reason, the emphasis is laid upon evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge. 

Test Details: 20 minutes 

15 Application Questions

05 Theory Questions 


The combination of Application and Theory questions helps to evaluate Technical as well as practical Skills of Candidates

Test description:

JSF 2 (JavaServer Faces) is the latest updated version of JSF. It is a technology which provides a component-based architecture for developing User Interface Components. It is a Java-based web application framework that intends to simplify development integration of web-based interfaces. This test is specially designed to check application, practical skills of a JSF 2 (JavaServer Faces) developer – as per Industry Standards. Our JSF 2 (JavaServer Faces) skill test is created and validated by Subject Matter Experts. 


Test Topics :

The JSF 2 (JavaServer Faces) Skill test contains questions on following topics: 
 

  • Facelets and XHTML files in JSF 2

  • Requested Scoped in JSF 2

  • Session and Application Scoped in JSF 2

  • Backing Beans 

  • JSF 2 Navigation

  • Implementing Redirection


The JSF test contains MCQ's (Multiple Choice Questions), MAQ's (Multiple Answer Questions), Fill in the Blank, Descriptive, True or False. Using powerful reporting, you will have a detailed analysis of test results to help you make better decisions and predict candidate and employee success.

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO