InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Which of the following provides in-built events? |
|
Answer» Which of the FOLLOWING PROVIDES in-built events? |
|
| 2. |
Which of the following is true about Piping streams? |
|
Answer» Which of the following is TRUE about Piping streams? |
|
| 3. |
Which of the following is true about EventEmitter.emit property? |
|
Answer» Which of the following is true about EventEmitter.emit property? |
|
| 4. |
Node.js is a single threaded application but supports concurrency. |
|
Answer» Node.js is a single threaded application but supports concurrency. |
|
| 5. |
Each type of Stream is an EventEmitter |
|
Answer» Each type of STREAM is an EVENTEMITTER |
|
| 6. |
How are node based web servers different from traditional web servers? |
|
Answer» How are node based WEB servers DIFFERENT from traditional web servers? |
|
| 7. |
A stream fires end event when there is no more data to read |
|
Answer» A stream fires end event when there is no more data to read |
|
| 8. |
Print the relative path of your script using the predefined global object _____________. |
|
Answer» PRINT the RELATIVE path of your script USING the predefined global OBJECT _____________. Please choose the correct option from below list (1)console.log('filename') (2)console.log(/filename) (3)console.log( __dirname ); 9) (4)console.log( __filename ); Answer:-(4)console.log( __filename ); |
|
| 9. |
We can get an http module in a node based application using _______ |
|
Answer» We can get an http module in a node based application USING _______ |
|
| 10. |
A stream fires a data event when there is data available to read |
|
Answer» A stream FIRES a data EVENT when there is data available to read |
|
| 11. |
What is the use of Underscore Variable in REPL session? |
|
Answer» What is the use of Underscore Variable in REPL session? |
|
| 12. |
Which of the following commands will show the version of the Node? |
|
Answer» Which of the following COMMANDS will SHOW the version of the Node? |
|
| 13. |
Which of the following codes can make a request to a web server? |
|
Answer» Which of the FOLLOWING codes can make a request to a web server? |
|
| 14. |
Which method of fs module is used to write a file? |
|
Answer» Which method of fs MODULE is used to write a file? |
|
| 15. |
Which of the following is true about a writable stream? |
|
Answer» Which of the following is true about a writable stream? |
|
| 16. |
Which method of fs module is used to close a file? |
|
Answer» Which method of fs module is used to close a FILE? |
|
| 17. |
Which method of fs module is used to truncate a file? |
|
Answer» Which method of fs module is used to TRUNCATE a file? |
|
| 18. |
What is Node.js? |
|
Answer» What is Node.js? |
|
| 19. |
Write down some difference between Django and Node.js |
|
Answer» WRITE down some DIFFERENCE between DJANGO and Node.js Below are the 7 most COMMON difference in between Django and Node.js |
|
| 20. |
Which of the following is true about EventEmitter.on property? |
|
Answer» Which of the following is true about EventEmitter.on PROPERTY? |
|