Node.js Quiz | Set-3

Last Updated :
Discuss
Comments

Question 1

Which below module is used to get end-of-line character as specified by the operating system ?
  • A
    os.EOL
  • B
    os.endianness()
  • C
    os.cpus()
  • D
    os.arch()

Question 2

Which method in Node.js are used to get system uptime in seconds ?
  • A
    os.freemem()
  • B
    os.uptime()
  • C
    os.getPriority()
  • D
    os.homedir()

Question 3

How do we get the filename portion of a path to the file in Node.js ?
  • A
    path.extname()
  • B
    path.basename()
  • C
    path.dirname()
  • D
    path.delimiter

Question 4

Which below in Node.js are used to join a number of path segments ?
  • A
    path.argv()
  • B
    path.join()
  • C
    path.chdir()
  • D
    path.argv()

Question 5

Which below method is responsible for parsing and formatting URL query strings ?
  • A
    Query
  • B
    String decoder
  • C
    steam
  • D
    VM

Question 6

Which data-handling method and is used to read or write input into output sequentially ?
  • A
    Utility
  • B
    Timer
  • C
    Decoder
  • D
    Stream

Question 7

Which method is used to return all the remaining input stored in the internal buffer as a string ?
  • A
    stringDecoder.start()
  • B
    stringDecoder.end()
  • C
    stringEncoder.start()
  • D
    stringEncoder.end()

Question 8

Which method finds the maximum number of sockets that will be left open in the free state ?
  • A
    agent.minFreeSockets
  • B
    agent.maxFreeSockets
  • C
    agent.maxSockets
  • D
    agent.minSockets

Question 9

Which property is used to yields an object listing Zlib-related constants ?
  • A
    zlib.constants()
  • B
    zlib.createBrotliDecompress()
  • C
    zlib.createUnzip()
  • D
    zlib.createBrotliCompress()

Question 10

Which v8 method is used to serialize any type of data into a buffer using default serializer ?
  • A
    v8.Serializer.writeValue()
  • B
    v8.Serializer.writeHeader()
  • C
    v8.serialize()
  • D
    v8.deserialize()

There are 15 questions to complete.

Take a part in the ongoing discussion