NPM Online Test

Topics covered

Folder structures, JSON, Queries, Database, Referencing, Operators, Database Objects, URL, Tables

  • MAQ (Multiple Answer Question)
  • MCQ (Multiple Choice Question)
  • Descriptive Question
  • White Board Simulator
  • Coding Simulator
  • Audio Question
  • Video Question
  • Case Study Question

NPM (Node Package Manager) is basically a package manager for Node.js packages or modules. NPM makes it easy for JavaScript developers to share and reuse code, and it makes it easy to update the code that you are sharing. NPM comes bundled with Node.js installable after v0.6.3 version.

NPM online test is created & validated by experienced subject matter experts (SMEs) to assess NPM skills of candidates as per industry standards. Online NPM test helps recruiters and hiring managers to gauge application skills of Node.js experts for the efficient use of npm before hiring/recruiting them onboard.

The NPM assessment test helps to screen the candidates who possess traits as follows: 

  • Intermediate proficiency and familiarity with best practices in the following areas: Node.JS, JQuery, database objects.
  • Knowledge of JavaScript

Our NPM skills test reports will give a detailed analysis of each candidate and will provide the analytical data which helps you to hire better and faster. Screen potential hires by using our scientifically designed online NPM pre-employment test. Use the intelligent reports to analyze the technical strengths of the candidates & make the right hiring decisions.

This pre-employment test is useful for hiring:
  • JavaScript Developers
  •  Full Stack Developer
  •  Node.js Developers

Test details:

The NPM online test enables employers and recruiters to identify potential prospects by evaluating working skills and job readiness. For this reason, the emphasis is laid upon evaluating the knowledge of applied skills gained through real work experience, rather than theoretical knowledge.

The online NPM test may contain MCQs (Multiple Choice Questions), MAQs (Multiple Answer Questions), Fill in the Blank, Descriptive, Whiteboard Questions, Audio / Video Questions, True or False.

Test Duration: 20 minutes

10 Application Questions

NPM Online Test

Question #1 of 3

You need to (hypothetically) find a certain temporary file of your application using npm. Assuming that the default locations were used, which of the following environment variables determines where the file is located?

    • TMPDIR

    • TMP

    • TEMP

    • Any of the mentioned

Question #2 of 3

You installed npm in your system and started the server on the same system on port 5030. If you want to install some packages in the npm registry installed on your machine then, which of following options can be used?

Note: There can be multiple correct answers to this question.

    • npm --registry=http://localhost:5030/ install <package_name>

    • $ npm persist registry=http://localhost:5030/
      $ npm install <package_name>

    • $ npm set registry http://localhost:5030/
      $ npm install <package_name>

Question #3 of 3

You installed npm to your machine, but the owner hasn't been set. If you want to set the current user(username) to be the owner then, which of the following commands can be used?

    • sudo chown -R $(whoami) $(npm config get prefix)

    • sudo dirown -U $(username) $(npm getconfig prefix)

    • sudo chown -U $(username) $(npm getconfig prefix)

    • sudo dirown-R $(whoami) $(npm config get prefix)

Candidate Name
Assessment Name
Invited by
Assessment Date
IP Address

24.00 Out of 40.00
23 Minutes

Java EE




Oracle PL/SQL


Analytical Thinking


Note:If score<= 30% then its a Weakness. If score >=70% then its a Strength.


Java EE, Oracle PL/SQL, Analytical Thinking




It was a good test for me, the questions were on the latest technology of java on which I am currently working. It was a great experience. Thank you!

Take your first step to hire job fit candidate


How Interview Mocha works?

  • Add this test to your account

  • Invite candidates to take this test online

  • Candidates take the test

  • View and share actionable test reports

Trusted by leading brands worldwide

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai
Why hiring managers and recruiters across the globe love Interview Mocha
  • Largest number of ready pre-employment skill tests
  • Relevant test compositions and quality questions designed by Subject Matter Experts (IM SME)
  • Fastest custom test creation DNA
  • World’s most super easy skill assessment platform
  • High level of platform security implementation
  • Friendly and quick customer support
  • Ready to listen and implement your feedback, we are all ears
  • Affordable pricing

Take your first step to hire job fit candidate