Do You Know Basic Stuff About Node.Js?

10 Questions | Total Attempts: 596

SettingsSettingsSettings
Do You Know Basic Stuff About Node.Js? - Quiz

Any programmer with basic knowledge of Node. JS testing should rock this quiz. Are you one of them? Well, let's check that together. Start the quiz to find out are you a true Node. JS expert!


Questions and Answers
  • 1. 
    Why do we write unit tests?
    • A. 

      To check for bugs and viruses.

    • B. 

      To get the most out of an app.

    • C. 

      To compare the results with other tests.

    • D. 

      To see whether the given module works.

  • 2. 
    Which is not a par of test's structure?
    • A. 

      Asserting

    • B. 

      Test setup

    • C. 

      Playback

    • D. 

      Calling the tested method

  • 3. 
    How many concerns should each unit test?
    • A. 

      Four

    • B. 

      Three

    • C. 

      Two

    • D. 

      One

  • 4. 
    Which test runner should you use?
    • A. 

      Mochy

    • B. 

      Mocho

    • C. 

      Mochi

    • D. 

      Mocha

  • 5. 
    Which assertion library should you use?
    • A. 

      Chai

    • B. 

      Latte

    • C. 

      Tea

    • D. 

      Cinnamon

  • 6. 
    What should you use as a test spy, stub and mock?
    • A. 

      Synonym

    • B. 

      Simon

    • C. 

      Sinon

    • D. 

      Salmon

  • 7. 
    What do test spies tell you? 
    • A. 

      How many hidden bugs does the app contain

    • B. 

      How many users did access the test

    • C. 

      How many times function calls were called

    • D. 

      How many people online can view your app

  • 8. 
    What is a mock? 
    • A. 

      A fake password given to beta testers

    • B. 

      A fake method with a pre-programmed behavior and expectations

    • C. 

      A bad phrase said to insult someone

    • D. 

      A fake method used to crack codes

  • 9. 
    Which report coverage on metrics isn't real? 
    • A. 

      Line

    • B. 

      Phrase

    • C. 

      Statement

    • D. 

      Branch

  • 10. 
    Which statement about stubs isn't true? 
    • A. 

      They replace the target function

    • B. 

      You can use stubs to control a method's behavior

    • C. 

      You can use stubs to prevent calls to external resources

    • D. 

      You must use it in every step

Back to Top Back to top