• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

Node.js Quiz | Set-3

Question 1

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

Question 2

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

Question 3

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

Question 4

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

Question 5

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

Question 6

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

Question 7

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

Question 8

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

Question 9

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

Question 10

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

There are 15 questions to complete.

Last Updated :
Take a part in the ongoing discussion