This React, Node.js, Express.js and MongoDB Online Test Separates Good From Bad Hires

Check our public questions below

Solve questions to get feedback or
take a practice test and get a free certificate.

Screen with work-sample questions

Work-samples are the best predictor of work performance. 8,000+ companies use TestDome premium questions.

About the test

The React, Node.js, Express.js and MongoDB online test evaluates candidates’ knowledge of key concepts required by a full stack engineer who can combine their expertise with React, Node.js, Express.js and MongoDB to build full stack applications.

It is an ideal test for pre-employment screening. A good full stack developer, who is using React for the front-end, Node.js and Express.js for the backend, and MongoDB as database engine, must be able to create dynamic and interactive user interfaces, as well as build a scalable backend to serve them. Moreover, they must know how to write and analyze MongoDB queries, which are used to communicate with the database.

The online test requires candidates to answer multiple choice, fill-in-the-blank, and coding questions about React, Node.js, Express.js, and MongoDB.

Sample public questions

Easy
3 min
mca
Public
Express.js
Express.js Middleware
HTTP Routing

A blogging application is built using an Express.js backend. The backend serves the frontend code through the public directory and also serves a few static files for the website through the static directory. The code for Express.js application is:

const express = require("express");
const path = require("path");
const app = express();

app.use(express.static(path.join(__dirname, "public")));
app.use("/images", express.static(path.join(__dirname, "static", "images")));
app.use("/files", express.static(path.join(__dirname, "static", "manuals")));

app.listen(80, () => {
  console.log("Blogging app listening on port 80");
});

Below is the folder structure of the application:

Folder structure of application.

Which endpoints will return a status code of 200 for the above application?

Easy
3 min
mca
Public
MongoDB
Database Schema

You work for a mail delivery company and the tracker system uses MongoDB with the following document schema for the "Packages" collection:

{
  "_id": { "bsonType": "objectId" },
  "destination": { "type": "string" },
  "state": { "enum": ["preparing", "in transit", "delivered"] }
}

Select all the correct statements about the Packages collection.

Easy
3 min
mca
Public
Node.js
NPM

Consider the following package.json for a Node.js application:

{
  "name": "skill-measure-app",
  "private": true,
  "version": "1.0.0",
  "main": "lib/main.js",
  "scripts": {
    "build": "npm run cleanup & npm run test & npm run publish",
    "cleanup": "rm -fr ./lib",
    "test": "jest",
    "publish": "npm publish lib"
  },
  "dependencies": {
     "jest": "^23.0.1",
     "custom-package": "file:../custom-package"
  }
}

Select all the correct statements.

Easy
7 min
code
Public
React
Effect Hook
React Hooks
Reference Hook

Finish the FocusableInput component so that the input element automatically receives focus on the first render if the shouldFocus prop is true.

The component should use React Hooks.

For jobseekers: get certified

Earn a free certificate by achieving top 25% on the React, Node.js, Express.js and MongoDB test with public questions.

Take a Certification Test

For companies: premium questions

Buy TestDome to access premium questions that can't be practiced.
Get money back if you find any premium question answered online.

Sign Up to Offer this Test

44 more premium React, Node.js, Express.js and MongoDB questions

Fahrenheit Converter, Shopping Cart, Weather Data, Toggle Options Visibility, Cards Widget, Error Catcher, File Exists, Retry Request, Run Sequentially, Product Rating, Stream Transform, Package Declaration, Add Id, Hash Bug, Game Action, Arrange Promises, Click Button, Email Input, List Wrapper, Subscription, Login Form, Product Search, Async Paragraph, Shopping List, Fish Movement Patterns, Tutoring Platform, Helping a Colleague, Charging Stations, Pet Form, Tooltip Component, Simple Calculator, Tab Strip, Theme Context Switcher, Player Status, Reorder, Contact Form, Email Form, Post Comment, Details, Movie Ratings, Report Generator, The Firm, Deprecated Calculator, Welcome Cookie.

Skills and topics tested

  • Node.js
  • Modules
  • Events
  • Asynchronous Programming
  • React
  • Data Binding
  • Components
  • Managing State
  • React Hooks
  • Error Boundaries
  • Async-Await
  • Promise
  • Event Handling
  • JSON
  • Stream
  • NPM
  • Event Loop
  • Bug Fixing
  • Event Emitter
  • Exceptions
  • Higher Order Components
  • Conditional Rendering
  • State Hook
  • Hooks
  • Effect Hook
  • Asynchronous Calls
  • MongoDB
  • Data Storage
  • NoSQL
  • Sharding
  • Queries
  • Update
  • Indexes
  • Performance Tuning
  • Forms
  • Portals
  • Reducer Hook
  • Context
  • Content Manipulation
  • Express.js
  • HTTP Routing
  • Express.js Middleware
  • Error Handling
  • HTTP

For job roles

  • Express.js Developer
  • Full-Stack Developer
  • JavaScript Developer
  • MongoDB Developer
  • Node.js Developer
  • React Developer
  • Web Developer

Solve all your skill testing needs

150+ Pre-made tests

From web development and database administration to project management and customer support. See all pre-made tests.

Multi-skills Test

Mix questions for different skills or even custom questions in one test. See an example.

How TestDome works

1

Choose a pre-made test
or create a custom test

2

Invite candidates via
email, URL or your ATS

3

Candidates take
a test remotely

4

Sort candidates and
get individual reports

Want to know more?