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×

Online Front End Developer Test

Topics Covered

  • HTML5
  • AngularJS Application
  • JQuery - Application
  • CSS
  • Bootstrap - Application

Useful for hiring

  • Front End Developers (0-3 Years experience)
  • Web Developer

Start hiring job-fit candidates using this assessment

GET A DEMO

"Interview Mocha's assessments eliminated reliance on resumes and reduced our time to hire by half. Now we spend time only on relevant candidates and take data-driven hiring decisions."

George Nichkov, Gett,
Global Analytics Team Lead
Question

How to align text vertically next to an image? 


   
   Text 
 

Note: There can be multiple correct answers to this question.

Answer
    • <div>
      <img style="vertical-align:middle" src="https://img.ru/img.jpg">
      <span style="">Text</span>
      </div>

    • div {display:flex;}

    • div {align-items:center;}

    • div * {margin-top:auto; margin-bottom:auto;}

Question

How would you create an iterative 'foreach' loop with a data-binding expression that displays the name property of each phone, with the preceding line of code?
 

    Answer
      • <ul>
        <li ng-repeat="phone in phones">{{ phone.name }}</li>
        </ul>
         

      • <ul>
        <li ng-foreach="phone in phones">{{ phone.name }}</li>
        </ul>
         

      • <ul>
        <li ng-repeat="forEach phone in phones">{{ phone.name }}</li>
        </ul>
         

      • <ul>
        <li ng-repeat="phone in phones">{ phone.name }</li>
        </ul>
         

      • <ul>
        <li ng-repeat="phone.name in phones">{{ phone }}</li>
        </ul>
         

    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