This Express.js 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 Express.js online test evaluates candidates’ knowledge of key concepts for building applications with Express.js.

It is an ideal test for pre-employment screening. A good Express.js developer should be able to work with the library to build robust and scalable web services.

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

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
fill
Public
Express.js
HTTP Routing

Omega Services is updating its pricing page and they are updating their Express.js application so that the requests for the old pricing endpoint are redirected to the new endpoint. They also have an endpoint which will serve the company's brochure file.

Below is the code for the Express.js app of the company:

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

app.get("/omega/pricing", (req, res) => {
  ____________("/omega/pricingnew");
});

app.get("/omega/brochure", (req, res) => {
  ____________(path.join(̲ ̲ dirname, "public", "brochure.pdf"));
});

app.get("/omega/pricingnew", (req, res) => {
  res.send("Omega has the best deals");
});

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

Fill in the blanks so that all endpoints of the application respond as expected.

For jobseekers: get certified

Earn a free certificate by achieving top 25% on the Express.js 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

Skills and topics tested

  • Express.js
  • HTTP Routing
  • Express.js Middleware
  • Forms
  • Error Handling
  • HTTP

For job roles

  • Express.js 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?

Not exactly what you're looking for?

Related Express.js Programming Tests: