Are you a candidate looking to sharpen your skills? Try our practice tests or view sample interview questions & Get hired by the best. Click Here×

NPM Online Test

Topics Covered

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

Useful for hiring

  • JavaScript Developers
  •  Full Stack Developer
  •  Node.js Developers

Start hiring job-fit candidates using this assessment

GET A DEMO

"We are impressed with Interview Mocha's comprehensive IT skill test batteries and their ability to provide tailor-made assessments quickly. The results we got from Interview Mocha exceeded our expectations, employees found the tests quick, fun, and a benchmark of their knowledge."

Ajay Garg, Siemens,
Associate Manager
Question

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?

Answer
    • TMPDIR

    • TMP

    • TEMP

    • Any of the mentioned

Question

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.

Answer
    • 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

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?

Answer
    • 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)

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
 

Test description:

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.

Good News! You can customize this test as per your requirement

  • Choose and add questions from Interview Mocha question libraries

  • Add your own set of questions

  • Customize test settings like duration, number of questions, passing score, web proctoring and much more

  • Mail us at support@interviewmocha.com to create a custom test

Looking for a tailor-made test, to suit your assessment needs?

Get in touch

Global companies using Mocha assessments

  • altran
  • credit suisse
  • sephora
  • nielsen
  • capgemini
  • akamai

How Mocha assessments are brewed

Speed up your IT recruitment with Interview Mocha

  • 500+ IT skill tests
  • 20+ coding languages
  • 50+ domain knowledge tests
  • 100+ digital 2.0 skill tests
  • Customer focus aptitude tests
  • Enterprise ready features & more...
GET A DEMO

Why hiring managers and recruiters across the globe love Interview Mocha

Take your first step to hire job fit candidates

GET A DEMO