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×

UnderScore.JS Online Skills Assessment Test

Topics Covered

  • Using Map in Underscore.JS
  • Using sortBy function in Underscore.JS
  • Using "where" in Underscore.JS
  • Knowing functions in Underscore.JS
  • Grouping list in Underscore.JS
  • Look for Items in a list using Underscore.JS
  • Using filters in Underscore.JS

Useful for hiring

  • UnderScore JS Developer
  • JavaScript Developer
  • Full Stack Developer

Start hiring job-fit candidates using this assessment

GET A DEMO

"The best part of Interview Mocha is they have topic wise questions available. The skill wise extensive reports and advanced analytics lets us measure & benchmark the proficiency level of employees in that particular skill."

Cheryl Tolkinen, Securian, USA,
Learning & Development Manager
Question

The following code snippet shows an error:
var usersList = [{id: 12, user: 'Paul', role: 'ADMIN'}, {id: 23, user: 'Mike', role: 'DEFAULT'}, {id: 35, user: 'Gary', role: 'ADMIN'}, id: 46, user: 'Johnn', role: 'DEFAULT'}]; ._findLastIndex(usersList, {role: 'DEFAULT' });

Which of the following code snippet will fix the problem?

Answer
    • var usersList = [{id: 12, user: 'Paul', role: 'ADMIN'}, {id: 23, user: 'Mike', role: 'DEFAULT'}, {id: 35, user: 'Gary', role: 'ADMIN'}, {id: 46, user: 'Johnn', role: 'DEFAULT'}]; _.findLastIndex(usersList, {role: 'DEFAULT' });

    • var usersList = [{id: 12, user: 'Paul', role: 'ADMIN'}, {id: 23, user: 'Mike', role: 'DEFAULT'}, {id: 35, user: 'Gary', role: 'ADMIN'}, {id: 46, user: 'Johnn', role: 'DEFAULT'}]; _.lastIndex(usersList, {role: 'DEFAULT' });

    • var usersList = [id: 12, user: 'Paul', role: 'ADMIN'}, {id: 23, user: 'Mike', role: 'DEFAULT'}, {id: 35, user: 'Gary', role: 'ADMIN'}, id: 46, user: 'Johnn', role: 'DEFAULT'}]; _.findLastIndex(usersList, {role: 'DEFAULT' });

    • var usersList = [id: 12, user: 'Paul', role: 'ADMIN'}, {id: 23, user: 'Mike', role: 'DEFAULT'}, {id: 35, user: 'Gary', role: 'ADMIN'}, {id: 46, user: 'Johnn', role: 'DEFAULT'}]; _.findLastIndex(usersList, [role: DEFAULT ]);

Question

The following code snippet shows an error:
var machines = [{code: 'MACHINE01', serial: 4023456788}, {code: 'MACHINE02', serial: 4783456788}]; _.sortedIndex(machines, {code: 'MACHINE03', serial: 5047856788}, 'code');

Which of the following code snippet will fix the problem?

Answer
    • var machines = [{code: 'MACHINE01', serial: 4023456788}, {code: 'MACHINE02', serial: 4783456788}]; _.sorted(machines, {code: 'MACHINE03', serial: 5047856788}, 'code');

    • var machines = [{code: 'MACHINE01', serial: 4023456788}, {code: 'MACHINE02', serial: 4783456788}]; ._sortedIndex(machines, {code: 'MACHINE03', serial: 5047856788}, 'code');

    • var machines = [{code: 'MACHINE01', serial: 4023456788}, {code: 'MACHINE02', serial: 4783456788}]; _.sortedIndex(machines, {code: 'MACHINE03', serial: 5047856788}, 'serial');

    • var machines = [{code: 'MACHINE01', serial: 4023456788}, {code: 'MACHINE02', serial: 4783456788}]; ._sorted(machines, {code: 'MACHINE03', serial: 5047856788}, 'serial');

Question

Which of the following code snippets will run correctly in the browser?

Answer
    • var hideValue = ._omitValue({id: 12, name: 'Paul', surname: 'Hernandez', mail: 'paul@mail.com'}, 'id');

    • var hideValue = ._omit({id: 12, name: 'Paul', surname: 'Hernandez', mail: 'paul@mail.com'}, 'id');

    • var hideValue = _.omitValue({id: 12, name: 'Paul', surname: 'Hernandez', mail: 'paul@mail.com'}, 'id');

    • var hideValue = _.omit({id: 12, name: 'Paul', surname: 'Hernandez', mail: 'paul@mail.com'}, 'id');

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