• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests

Node.js Quiz | Set-2

Question 1

Which of the below is temporary memory storage that stores the data when it is being moved from one place to another ?
  • Buffer.copy()
  • Buffer.include()
  • Buffer.copy()
  • Buffer.equals()

Question 2

Which parse method is used to return the object whose properties represent the path ?
  • path.parse()
  • path.Reset()
  • path.countReset()
  • parse.countReset()

Question 3

Which below method is method to stop the time in Node.js ?
  • console.timeEnd()
  • console.timeStamp()
  • console.trace()
  • console.end()

Question 4

Which cipher method is used to return the buffer containing the value of cipher object ?
  • cipher.last()
  • cipher.start()
  • cipher.final()
  • cipher.update()

Question 5

Which module is used to update the cipher according to the given encoding format ?
  • crypto.incrypt()
  • cipher.update()
  • cipher.increment()
  • crypto.scrypt()

Question 6

Which method is used as a name resolution facility in Node.js ?
  • Assert
  • Http
  • DNS
  • Lookup

Question 7

Which DNS protocol is used to resolve name server records for the specified hostname ?
  • dns.resolveNs()
  • dns.resolveNapt()
  • dns.resolveMx()
  • dns.resolvePtr()

Question 8

Which of the below module handles file operations like creating, reading, deleting in Node.js ?
  • Crypto module
  • File module
  • Os module
  • Path module

Question 9

Which DNS protocol is used to resolve the IPv4 address for the specified hostname ?
  • dns.resolveNaptr()
  • dns.resolve6()
  • dns.resolvePtr()
  • dns.resolve4()

Question 10

Which below method is used to get the IP addresses of the current server in Node.js ?
  • dnsPromises.resolve4()
  • dnsPromises.resolveAny()
  • dnsPromises.resolveMx()
  • dnsPromises.getServers()

There are 15 questions to complete.

Last Updated :
Take a part in the ongoing discussion