Learn Node Js MCQs
Prepare Node Js MCQs (Multiple choice Questions) for exam and job interviews.
Which method is used to read a file asynchronously in Node.js?
1) fs.read()
2) fs.readData()
3) fs.readFile()
4) fs.getFile()
Answer : Option 3
What does `tls.createServer()` do?
1) Creates a TCP server
2) Creates a UDP server
3) Creates a secure TLS/SSL server
4) Creates an HTTP server
Answer : Option 3
How do you join an array of strings into a single string in Node.js?
1) array.joinAll()
2) array.merge()
3) array.join()
4) array.concat()
Answer : Option 3