Search test library by skills or roles
⌘ K

Mocha Online Test

The Mocha Online Test uses scenario-based MCQs to evaluate candidates on their proficiency in writing unit tests for JavaScript applications using the Mocha testing framework. The test assesses candidates' understanding of topics such as test-driven development, assertion libraries, asynchronous testing, and test organization. Candidates are evaluated on their ability to use Mocha to write effective and efficient unit tests for JavaScript code, including using the appropriate syntax for assertions, running tests asynchronously, organizing tests into suites, and generating test reports.

Get started for free
Preview questions

Screen candidates with a 30 mins test

Test duration:  ~ 30 mins
Difficulty level:  Moderate
Availability:  Available as custom test
Questions:
  • 5 Mocha MCQs
  • 5 Testing MCQs
  • 5 JavaScript MCQs
Covered skills:
Data Layers
Statistical Layers
Initializers
Test Execution
Mocha Backends
Computation Layer
Utility Layers
CPU Backend with Native Extention
Get started for free
Preview questions

Use Adaface tests trusted by recruitment teams globally

Adaface is used by 1500+ businesses in 80 countries.

Adaface skill assessments measure on-the-job skills of candidates, providing employers with an accurate tool for screening potential hires.

Amazon Morgan Stanley Vodafone United Nations HCL PayPal Bosch WeWork Optimum Solutions Deloitte NCS Sokrati J&T Express Capegemini

Use the Mocha Test to shortlist qualified candidates

The Mocha Online Test helps recruiters and hiring managers identify qualified candidates from a pool of resumes, and helps in taking objective hiring decisions. It reduces the administrative overhead of interviewing too many candidates and saves time by filtering out unqualified candidates at the first step of the hiring process.

The test screens for the following skills that hiring managers look for in candidates:

  • Ability to design and implement data layers effectively
  • Skilled in analyzing and manipulating statistical layers
  • Proficient in setting up and managing initializers
  • Capability to execute tests accurately
  • Familiarity with Mocha backends and their functionalities
  • Competence in working with computation layers
  • Proficiency in utilizing utility layers effectively
  • Knowledge of CPU backend with native extension
Get started for free
Preview questions

Screen candidates with the highest quality questions

We have a very high focus on the quality of questions that test for on-the-job skills. Every question is non-googleable and we have a very high bar for the level of subject matter experts we onboard to create these questions. We have crawlers to check if any of the questions are leaked online. If/ when a question gets leaked, we get an alert. We change the question for you & let you know.

How we design questions

These are just a small sample from our library of 15,000+ questions. The actual questions on this Mocha Online Test will be non-googleable.

🧐 Question

Medium

Database testcase
Regression Testing
Solve
Adaface is developing a new database system called “Helen”. The tester at Adaface developed the following testcase for regression testing:
1. Open Helen
2. Open “Students” database
3. Enter data for “Sid”
4. Set checkpoint
5. Store “Sid” data in “Students” 
6. Restart Helen
7. Read “Sid” data from “Students”
8. Compare checkpoint with the contents
When the tester ran the testcase the first time, it worked as expected. Pick the correct statements:

A: When the test case is ran the second time, the data entry for “Sid” already exists in the database. 
B: When the test case is ran the second time, it performs exactly as it did the first time
C: The testcase is a good example for regression testing “Helen”
D: The testcase is not a good example for regression testing “Helen” since the system behaves differently when the testcase is ran the second time

Medium

Decision Table
Solve
Check the following decision table:
 image
What are the expected actions for following testcases?

I: Joey's age is 22. He is a smoker residing in India

II: Jennifer's age is 62. She is a non-smoker not residing in India

A) I - Insure, 10% discount. II - Insure, no discount
B) I - Don't insure. II - Don't insure
C) I - Insure, no discount. II - Don't insure
D) I - Insure, no discount. II - Insure, 10% discount

Easy

Cart Checkout
Incident Report
Solve
Review the following incident report written QA team of LWB, Little White Book (an e-commerce app):
1. Place any items in the cart (Say “Nike FST Men”).
2. Place any other (different) item in the shopping cart (Say “Nike Air Max”).
3. Remove “Nike FST Men” from the shopping cart, but leave “Nike Air Max” in the cart.
4. Click on “Check out” button.
5. Expect the app to display the check out screen, instead ‘No items in the shopping cart. Click continue to go back to shopping.’ error message is shown as a popup.
6. Click “Continue”.
7. Expect the app to go to shopping screen to add/remove items from the cart. Instead the app crashes. 
8. The error in steps 5 and 7 occurred in every attempt of 5 attempts (1 2 3 4 and 6).
Which of the following information is missing from the incident report?

Medium

Async Await Promises
Promises
Async-Await
Solve
What will the following code output?
 image
A: 24 after 5 seconds and after another 5 seconds, another 24
B: 24 followed by another 24 immediately
C: 24 immediately and another 24 after 5 seconds
D: After 5 seconds, 24 and 24
E: Undefined
F: NaN
G: None of these

Medium

Bitcoin prices
Axios
Promises
Solve
Review the following JavaScript code and pick the correct options: 
 image
Assume that the API returns a successful 200 response code and a JSON object as the response body. What would the value of ‘a’ be after the code is executed?

Medium

My Module
Scope
Solve
What will the output of the following JavaScript code be?
 image
 image

Medium

Promise Resolve
Promises
Async-Await
Solve
What does the following code output? 
 image

Easy

Throw, Try, Async
Promises
Async-Await
Solve
What does the following JS code output?
 image
🧐 Question🔧 Skill

Medium

Database testcase
Regression Testing

2 mins

Testing
Solve

Medium

Decision Table

3 mins

Testing
Solve

Easy

Cart Checkout
Incident Report

2 mins

Testing
Solve

Medium

Async Await Promises
Promises
Async-Await

2 mins

JavaScript
Solve

Medium

Bitcoin prices
Axios
Promises

2 mins

JavaScript
Solve

Medium

My Module
Scope

2 mins

JavaScript
Solve

Medium

Promise Resolve
Promises
Async-Await

2 mins

JavaScript
Solve

Easy

Throw, Try, Async
Promises
Async-Await

2 mins

JavaScript
Solve
🧐 Question🔧 Skill💪 Difficulty⌛ Time
Database testcase
Regression Testing
Testing
Medium2 mins
Solve
Decision Table
Testing
Medium3 mins
Solve
Cart Checkout
Incident Report
Testing
Easy2 mins
Solve
Async Await Promises
Promises
Async-Await
JavaScript
Medium2 mins
Solve
Bitcoin prices
Axios
Promises
JavaScript
Medium2 mins
Solve
My Module
Scope
JavaScript
Medium2 mins
Solve
Promise Resolve
Promises
Async-Await
JavaScript
Medium2 mins
Solve
Throw, Try, Async
Promises
Async-Await
JavaScript
Easy2 mins
Solve

Test candidates on core Mocha Hiring Test topics

Data Layers: Data Layers involve creating, managing, and manipulating data structures within a software application. This skill is measured in the test to assess a candidate's ability to handle complex data structures and ensure efficient data management.

Statistical Layers: Statistical Layers refer to the techniques and methods used for analyzing and interpreting data to extract meaningful insights. This skill is included in the test to evaluate a candidate's proficiency in statistical analysis and their ability to derive valuable information from data sets.

Initializers: Initializers are responsible for setting up the necessary components and configurations of a program before it can run. This skill is measured in the test to assess a candidate's understanding of the initialization process and their ability to successfully set up a program for execution.

Test Execution: Test Execution refers to the process of running and evaluating software tests to ensure the functionality, reliability, and performance of a program. In this test, it is measured to gauge a candidate's expertise in executing tests and their familiarity with best practices for test execution.

Mocha Backends: Mocha Backends are the components responsible for processing and executing code written in the Mocha programming language. Measuring this skill aims to assess a candidate's proficiency in utilizing Mocha Backends and their ability to effectively implement Mocha code.

Computation Layer: The Computation Layer focuses on the mathematical calculations and algorithms used in a software program. This skill is included in the test to evaluate a candidate's aptitude in handling complex computations and their understanding of algorithmic principles.

Utility Layers: Utility Layers consist of various functions and tools that aid in the development and maintenance of software applications. This skill is measured in the test to assess a candidate's knowledge and proficiency in utilizing utility functions to enhance the functionality and efficiency of their code.

CPU Backend with Native Extension: A CPU Backend with Native Extension allows the execution of Mocha code to be optimized and accelerated by utilizing hardware capabilities. This skill is measured in the test to evaluate a candidate's ability to leverage CPU backends with native extensions to enhance the performance of their code.

Get started for free
Preview questions

Make informed decisions with actionable reports and benchmarks

View sample scorecard

Screen candidates in 3 easy steps

Pick a test from over 500+ tests

The Adaface test library features 500+ tests to enable you to test candidates on all popular skills- everything from programming languages, software frameworks, devops, logical reasoning, abstract reasoning, critical thinking, fluid intelligence, content marketing, talent acquisition, customer service, accounting, product management, sales and more.

Invite your candidates with 2-clicks

Make informed hiring decisions

Get started for free
Preview questions

Try the most advanced candidate assessment platform

ChatGPT Protection

Non-googleable Questions

Web Proctoring

IP Proctoring

Webcam Proctoring

MCQ Questions

Coding Questions

Typing Questions

Personality Questions

Custom Questions

Ready-to-use Tests

Custom Tests

Custom Branding

Bulk Invites

Public Links

ATS Integrations

Multiple Question Sets

Custom API integrations

Role-based Access

Priority Support

GDPR Compliance


Pick a plan based on your hiring needs

The most advanced candidate screening platform.
14-day free trial. No credit card required.

From
$15
per month (paid annually)
love bonito

With Adaface, we were able to optimise our initial screening process by upwards of 75%, freeing up precious time for both hiring managers and our talent acquisition team alike!

Brandon Lee, Head of People, Love, Bonito

Brandon
love bonito

It's very easy to share assessments with candidates and for candidates to use. We get good feedback from candidates about completing the tests. Adaface are very responsive and friendly to deal with.

Kirsty Wood, Human Resources, WillyWeather

Brandon
love bonito

We were able to close 106 positions in a record time of 45 days! Adaface enables us to conduct aptitude and psychometric assessments seamlessly. My hiring managers have never been happier with the quality of candidates shortlisted.

Amit Kataria, CHRO, Hanu

Brandon
love bonito

We evaluated several of their competitors and found Adaface to be the most compelling. Great library of questions that are designed to test for fit rather than memorization of algorithms.

Swayam Narain, CTO, Affable

Brandon

Have questions about the Mocha Hiring Test?

How does pricing work?

You can check out our pricing plans.

Can I customize the test?

Yes, absolutely. Custom assessments are set up within 48 hours based on your job description, and will include questions on all must-have skills you specify. Here's a quick guide on how you can request a custom test. You can also customize a test by uploading your own questions.

Can I combine multiple skills into one test?

Yes, absolutely. Custom assessments are set up based on your job description, and will include questions on all must-have skills you specify. Here's a quick guide on how you can request a custom test.

What roles can I use the Mocha Test for?

Here are few roles for which we recommend this test:

  • Node.js Software Engineer
  • Front-End Developer
Can I see a sample test, or do you have a free trial?

Yes!

The free trial includes one sample technical test (Java/ JavaScript) and one sample aptitude test that you will find in your dashboard when you sign up. You can use it to review the quality of questions and the candidate experience of giving a test on Adaface.

You can preview any of the 500+ tests and see the sample questions to decide if it would be a good fit for your requirements.

How do I interpret test scores?

The primary thing to keep in mind is that an assessment is an elimination tool, not a selection tool. A skills assessment is optimized to help you eliminate candidates who are not technically qualified for the role, it is not optimized to help you find the best candidate for the role. So the ideal way to use an assessment is to decide a threshold score (typically 55%, we help you benchmark) and invite all candidates who score above the threshold for the next rounds of interview.

I'm a candidate. Can I try a practice test?

No. Unfortunately, we do not support practice tests at the moment. However, you can use our sample questions for practice.

customers across world
Join 1500+ companies in 80+ countries.
Try the most candidate friendly skills assessment tool today.
g2 badges
Ready to use the Adaface Mocha Online Test?
Ready to use the Adaface Mocha Online Test?
logo
40 min tests.
No trick questions.
Accurate shortlisting.
Terms Privacy Trust Guide
ada
Ada
● Online
Previous
Score: NA
Next
✖️