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×

Online Grunt Test

Topics Covered

  • Task Configuration
  • File Mapping
  • File Compaction
  • Custom Filter Function
  • Creating Tasks
  • Grunt CLI
  • Task Configuration
  • Task Dependency
  • Wrapper

Useful for hiring

  • JavaScript Expert
  • Frontend Application Engineer
  • Full Stack Developer

Start hiring job-fit candidates using this assessment

GET A DEMO

"Interview Mocha has provided UNEECOPS with a veritable assessment platform with a comprehensive test library, online test platform, and intelligent reports. This made it easier for us to map different job openings with job-fit candidates and recruit faster."

Nisha Chandila, UNEECOPS,
Talent Acquisition Manager
Question

Select the correct option regarding the statements given below.

A) Grunt can be run from any subfolder of a project using Grunt CLI.
B) The find() method of Node JS searches for the locally installed grunt instance when it is to be run.

Answer
    • Statement A is true, Statement B is true, Statement B is not the correct explanation of Statement A.

    • Statement A is true, Statement B is true, Statement B is not the correct explanation of Statement A.

    • Statement A is true, Statement B is false.

    • Statement A is false, Statement B is false.

Question

You want to use Grunt for automation testing. For this, you installed grunt in your Windows system. To create a project specific package.json file, which of the following options would be the best way to do it?

Answer
    • Run - npm init - from the command line.

    • Run - npm install -g grunt-init - from the command line.

    • Run - grunt create package - from the Grunt Command line.

    • Run - grunt new package <project_name> - from the Grunt Command line.

Question

While writing a test script in Grunt, you created a wrapper function. If you want to initialize the configuration object for the test then, which of the options given below can be used?

Answer
    • Putting the required code in the grunt.onConstruct().

    • Using the grunt.initconfig() method.

    • Calling the grunt.initialize() method with the required configuration object.

    • None of the mentioned

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