Chapter quiz · Standard Library

Test what you learned.

8 questions on Standard Library. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

Standard Library — Chapter Quiz

Eight questions on fs, path, streams, events, process, crypto.

0/ 9
  1. Question 1
    1

    Which is the modern promise-based fs import?

  2. Question 2
    2

    readFileSync is safe to use inside an HTTP request handler.

  3. Question 3
    3

    Why prefer path.join('a','b') over 'a/' + 'b'?

  4. Question 4
    4

    What is EventEmitter's once(name, fn) for?

  5. Question 5
    5

    Why use streams instead of readFile for big files?

  6. Question 6
    6

    The global object that exposes args, env, pid, and signals is called ___.

  7. Question 7
    7

    What is the secure way to generate a random session token?

  8. Question 8
    8

    Which streams ship in node:stream?

    Select all that apply.

Pick an answer — instant feedback as you go.