Nodejs Mock Test III
Nodejs Mock Test III
Nodejs Mock Test III
JS MOCK TEST
http://www.tutorialspoint.com Copyright © tutorialspoint.com
This section presents you various set of Mock Tests related to Node.js Framework. You can
download these sample mock tests at your local machine and solve offline at your convenience.
Every mock test is supplied with a mock test key to let you verify the final score and grade yourself.
A - true
B - false
A - There are built-in methods to be used for printing informational, warning and error messages
in console.
A - true
B - false
C - process emits uncaughtException when when an exception bubbles all the way back to the
event loop.
A - console.logprocess. memoryUsage();
A - os module
B - fs module
C - net module
Q 12 - Which of the following code print the total system memory of operating
system?
Q 13 - Which of the following code print the total free memory of operating system?
A - os module
B - fs module
C - path module
A - os.resolve ′ main. js ′
B - path.resolve ′ main. js ′
C - fs.resolve ′ main. js ′
A - fs.extname ′ main. js ′
B - path.extname ′ main. js ′
C - os.extname ′ main. js ′
A - os module
B - fs module
C - net module
A - net.createServer[options][, connectionListener]
B - net.connectoptions[, connectionListener]
A - net.createServer[options][, connectionListener]
B - net.connectoptions[, connectionListener]
A - true
B - false
Q 23 - net.isIPinput returns 0 for invalid input.
A - true
B - false
A - true
B - false
A - true
B - false
ANSWER SHEET
1 A
2 D
3 A
4 D
5 A
6 B
7 A
8 A
9 B
10 B
11 B
12 A
13 A
14 C
15 A
16 A
17 B
18 B
19 C
20 A
21 A
22 A
23 A
24 A
25 A