Do You Know Everything About Mocha Testing?

10 Questions | Total Attempts: 39

SettingsSettingsSettings
Do You Know Everything About Mocha Testing? - Quiz

No, it's not Mocha as in a tasty hot beverage. Mocha testing is an inovative way of testing. Use your browser and a few quick steps and this framework will work for you. Take the Mocha quiz to find out if you know everything about Mocha testing.


Questions and Answers
  • 1. 
    Which command installs Mocha framework? 
    • A. 

      $ npm apply- mocha

    • B. 

      $ npm install -g mocha

    • C. 

      $ npm use-g mocha

    • D. 

      $ npm work with-g mocha

  • 2. 
    When was Mocha initially released? 
    • A. 

      In 2001

    • B. 

      In 2011

    • C. 

      In 2010

    • D. 

      In 2018

  • 3. 
    Which open source cross-platform is Mocha working on?
    • A. 

      Dode.js

    • B. 

      Sode.sj

    • C. 

      Mode.jw

    • D. 

      Node.js

  • 4. 
    Which JavaScript assertion library can Mocha use?
    • A. 

      Latte

    • B. 

      Coffee

    • C. 

      Tea

    • D. 

      Chai

  • 5. 
    How does Mocha run tests?
    • A. 

      Quickly

    • B. 

      Slowly

    • C. 

      Automatically

    • D. 

      Serially

  • 6. 
    Which words describe results given by Mocha tests? 
    • A. 

      Detailed and long

    • B. 

      Flexible and accurate

    • C. 

      Flexible and modified

    • D. 

      Accessible and available to everyone

  • 7. 
    Which browser is Mocha-friendly? 
    • A. 

      Chrome

    • B. 

      Firefox

    • C. 

      Safari

    • D. 

      All of them

  • 8. 
    Which command loads Mocha settings? 
    • A. 

      Mocha.setup

    • B. 

      Mocha.settings

    • C. 

      Mocha.options

    • D. 

      Mocha.loads

  • 9. 
    Which statement is true? 
    • A. 

      Mochawesome is an add on you need to pay to use as a HTML reporter.

    • B. 

      Mochawesome is a bug detector.

    • C. 

      Mochawesome is a great alternative to the default HTML reporter.

    • D. 

      Mochawesome is a default HTML reporter.

  • 10. 
    Which is not a Mocha plugin? 
    • A. 

      Chai tea

    • B. 

      Jetbrains

    • C. 

      Wallaby.js

    • D. 

      Emacs

Back to Top Back to top