Node.js Online Test

TestDome skill assessments are used by more than 6,000 companies and 450,000 individual test takers.

Jobseekers: Get a Certificate

Take a Practice Test

Companies: Try First, Pay Later

Sign Up To Use This Test

The Node.js online test assesses candidates' knowledge of programming in the JavaScript language running on the Node.js environment and their ability to solve asynchronous problems.

It's an ideal test for pre-employment screening. A good Node.js developer needs to be able to solve problems using JavaScript and solve asynchronous problems using various programming patterns.

This online test requires candidates to solve coding problems in the Node.js environment and to find and fix bugs in a Node.js program.

Recommended Job Roles
Node.js Developer
Sample Candidate Report

Sample Free Questions

Config

3min
  -  
Easy  
  -  
MCA

Node.js NPM Public

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.

(Select all acceptable answers.)

Http Server

5min
  -  
Easy  
  -  
MCA

Node.js Standard library Public

A company hosts its website and a product API on same server using the code below:

let http = require('http');

let commonResponse = function(response){
  response.writeHead(200, { "Content-Type": "text/html" });
  response.write("Request Complete");
}

let handleApi = function(req, res){
  if(req.method == 'POST'){
    commonResponse(res);
    res.end();
  }
}

let handleWeb = function(req, res){
  commonResponse(res)
  res.end();
}

http.createServer(handleApi).listen(4513);
http.createServer(handleWeb).listen(4514);

Select all the correct answers.

(Select all acceptable answers.)

Use Free Questions On a Trial Plan

Premium Questions

The premium question library contains our unique, hand-crafted questions. We offer a refund if you find any of them answered online.

Questions
Fahrenheit Converter, Shopping Cart, File Exists, Stream Transform, Run Sequentially, Retry Request, Weather Data
Skills
Node.js Modules Events JSON Stream Async-await Asynchronous programming Promise
Score Distribution
# of candidates
0-33%
34-66%
67-100%
Score
Pricing For Premium Questions