Node.js Quiz | Set-2

Last Updated :
Discuss
Comments

Question 1

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

Question 2

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

Question 3

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

Question 4

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

Question 5

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

Question 6

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

Question 7

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

Question 8

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

Question 9

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

Question 10

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

There are 15 questions to complete.

Take a part in the ongoing discussion