MCQOPTIONS
Saved Bookmarks
This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your Technical Programming knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
A stream fires end event when there is no more data to read. |
| A. | true |
| B. | false |
| Answer» B. false | |
| 2. |
Which of the following code can make a request to a web server? |
| A. | http.request(options, callback) |
| B. | http.createRequest(options, callback) |
| C. | http.makeRequest(options, callback) |
| D. | None of the above |
| Answer» B. http.createRequest(options, callback) | |
| 3. |
Which of the following is true about internal binding with respect to domain module? |
| A. | Error emmitter is executing its code within run method of a domain |
| B. | Error emmitter is added explicitly to a domain using its add method. |
| C. | Both of the above. |
| D. | None of the above |
| Answer» B. Error emmitter is added explicitly to a domain using its add method. | |
| 4. |
Which of the following is the correct way to get an extension of a file? |
| A. | fs.extname(main.js) |
| B. | path.extname(main.js) |
| C. | os.extname(main.js) |
| D. | None of the above. |
| Answer» C. os.extname(main.js) | |
| 5. |
Which of the following code print the endianness of operating system? |
| A. | console.log(endianness : + os.endianness); |
| B. | console.log(endianness : + os.endianness()); |
| C. | console.log(endianness : + os.endianness()); |
| D. | None of the above. |
| Answer» C. console.log(endianness : + os.endianness()); | |
| 6. |
Which of the following is true about setInterval(cb, ms) global function? |
| A. | The setInterval(cb, ms) global function is used to run callback cb repeatedly after at least ms milliseconds. |
| B. | The setInterval(cb, ms) method returns an opaque value that represents the timer which can be used to clear the timer using the function clearInterval(t). |
| C. | Both of the above. |
| D. | None of the above. |
| Answer» D. None of the above. | |
| 7. |
Which of the following is true about readable stream? |
| A. | Readable stream is used for read operation. |
| B. | Output of readable stream can be input to a writable stream. |
| C. | Both of the above. |
| D. | None of the above. |
| Answer» D. None of the above. | |
| 8. |
What is use of Underscore Variable in REPL session? |
| A. | to get the last command used. |
| B. | to get the last result. |
| C. | to get the last result. |
| D. | to get the last result. |
| Answer» C. to get the last result. | |