Check our public questions below
Solve questions to get feedback or
take a practice test and get a free certificate.
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.
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.
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:
Which endpoints will return a status code of 200 for the above application?
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.
Earn a free certificate by achieving top 25% on the Express.js test with public questions.
Take a Certification TestSunshine Caprio
Java and SQL
TestDome
Certificate
Buy TestDome to access premium questions that can't be practiced.
Get money back if you find any premium question answered online.
Movie Ratings, Report Generator, The Firm, Deprecated Calculator, Welcome Cookie.
From web development and database administration to project management and customer support. See all pre-made tests.
From JavaScript and SQL to English and customer support. See all questions to filter by skill.
Mix questions for different skills or even custom questions in one test. See an example.
Choose a pre-made test
or create a custom test
Invite candidates via
email, URL or your ATS
Candidates take
a test remotely
Sort candidates and
get individual reports
Related Express.js Programming Tests: