Node JS 13 Set 4
Free Online Best Node JS 13 MCQ Questions for improve your basic knowledge of Node JS 13. This Node JS 13 set 4 test that contains 25 Multiple Choice Questions with 4 options. You have to select the right answer to a question.
Start
Congratulations - you have completed Node JS 13 Set 4.
You scored %%SCORE%% out of %%TOTAL%%.
Your performance has been rated as %%RATING%%
Your answers are highlighted below.
Question 1 |
Node.js = ____
A | Runtime Environment + JavaScript Library |
B | Runtime Environment |
C | JavaScript Library |
D | All of the Above |
Question 2 |
In Nodejs what is use of underscore variable in REPL session?
A | to store the result |
B | to get the last command used |
C | to get the last result |
D | None of the above |
Question 3 |
What should you do in your code to improve your application’s performance?
A | Use gzip compression |
B | Do logging correctly |
C | Handle exceptions properly |
D | Don’t use synchronous functions |
Question 4 |
To install Node.js express module____
A | $ npm install express |
B | $ node install express |
C | $ install express |
D | $ install npm express |
Question 5 |
A Node.js application consists of_____ important components ?
A | 2 |
B | 3 |
C | 4 |
D | 5 |
Question 6 |
Which of the following tool automates various tasks of Node.js application?
A | Express.js |
B | GruntJS |
C | NPM |
D | None of the above |
Question 7 |
Which of the following is true about fs module of Node?
A | Every method in fs module have synchronous as well as asynchronous form |
B | Asynchronous methods of fs module take last parameter as completion function callback and first parameter of the callback function as error |
C | Both of the above |
D | None of Above |
Question 8 |
Which of the following class is used to create and consume custom events in Node.js?
A | Events |
B | NodeEvent |
C | EventEmitter |
D | Node |
Question 9 |
Node.js supports which of the following platform?
A | Windows |
B | Macintosh |
C | Unix/Linux |
D | All of the Above |
Question 10 |
Stable Workers Threads API____
A | Worker threads in Node.js enable parallel, CPU-intensive JavaScript operations |
B | ECMAScript modules,QUIC protocol support |
C | WebAssembly support,V8 JavaScript engine performance updates |
D | All of the Above |
Question 11 |
Which of the following statements holds good with respect to Node?
A | Node being a single thread, and uses async function calls to maintain the concurrency |
B | Every API of Node js are asynchronous |
C | Node thread keeps an event loop and whenever any task get completed, it fires the corresponding event which signals the event listener function to get executed |
D | All of the Above |
Question 12 |
Which method is used to compare the placement of two nodes in the DOM hierarchy (document)?
A | compareDocumentPosition() |
B | cloneNode() |
C | getUserData() |
D | getFeature() |
Question 13 |
Which statement executes the code of sample.js file?
A | sample.js |
B | node sample.js |
C | nodejs sample.js |
D | node js sample.js |
Question 14 |
New in Node.js is 13____
A | ECMAScript modules,QUIC protocol support |
B | WebAssembly support,V8 JavaScript engine performance updates |
C | Diagnostic reports |
D | All of the Above |
Question 15 |
Which of the following module is required for path specific operations ?
A | Os module |
B | Path module |
C | Fs module |
D | js module |
Question 16 |
listeners(event)____
A | Adds a one time listener to the event |
B | Returns the number of listeners for a given event |
C | Removes a listener from the listener array for the specified event |
D | Returns an array of listeners for the specified event |
Question 17 |
HTTP methods______
A | GET |
B | PUT |
C | POST |
D | All of the Above |
Question 18 |
How can we create instance of http module?
A | var http = require("http") |
B | var http = new require("http") |
C | var http = new http() |
D | http = new http() |
Question 19 |
Which method is used to compare the placement of two nodes in the DOM hierarchy (document)?
A | cloneNode() |
B | compareDocumentPosition() |
C | getUserData() |
D | getFeature() |
Question 20 |
listenerCount(emitter, event)____
A | Returns the number of listeners for a given event |
B | Returns an array of listeners for the specified event |
C | Adds a one time listener to the event |
D | Removes a listener from the listener array for the specified event |
Question 21 |
Better Python 3 build support______
A | in 2020 it should be possible to build Node.js and native modules using Python 3 |
B | Worker threads in Node.js enable parallel, CPU-intensive JavaScript operations |
C | WebAssembly support,V8 JavaScript engine performance updates |
D | WebAssembly support,V8 JavaScript engine performance updates |
Question 22 |
Command to show installed version of Node___
A | $ npm --version |
B | $ node --version |
C | $ npm getVersion |
D | $ node getVersion |
Question 23 |
Which of the following is the correct way to get a normalized path?
A | path.normalize('/test/test1//2slashes/1slash/tab/..') |
B | fs.normalize('/test/test1//2slashes/1slash/tab/..') |
C | os.normalize('/test/test1//2slashes/1slash/tab/..') |
D | None of Above |
Question 24 |
Which of the following types of application can be built using Node.js?
A | Web Application |
B | Chat Application |
C | RESTful Service |
D | All of the above |
Question 25 |
Select all valid rout parameter formats_____
A | /books/!:from-:to |
B | /books/:from-:to |
C | /books/:bookId/Id/ |
D | /books/:book/Id/ |
Once you are finished, click the button below. Any items you have not completed will be marked incorrect.
Get Results
There are 25 questions to complete.
← |
List |
→ |
Return
Shaded items are complete.
1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 |
End |
Return
You have completed
questions
question
Your score is
Correct
Wrong
Partial-Credit
You have not finished your quiz. If you leave this page, your progress will be lost.
Correct Answer
You Selected
Not Attempted
Final Score on Quiz
Attempted Questions Correct
Attempted Questions Wrong
Questions Not Attempted
Total Questions on Quiz
Question Details
Results
Date
Score
Hint
Time allowed
minutes
seconds
Time used
Answer Choice(s) Selected
Question Text
All done
Need more practice!
Keep trying!
Not bad!
Good work!
Perfect!