Node - Js Online Quiz
Node - Js Online Quiz
js Online Quiz
A - Node.JS internally converts JavaScript code to Java based code and then
execute the same.
B - Node.JS internally converts JavaScript code to C based code and then execute
the same.
Answer : C
Explanation
Being built on Google Chrome's V8 JavaScript Engine, Node.js library is very fast
in code execution.
Q 2 - What is Callback?
https://www.tutorialspoint.com/nodejs/nodejs_online_quiz.htm 1/6
11/5/24, 4:30 PM Node.js Online Quiz
Answer : A
Explanation
Callback is an asynchronous equivalent for a function.
Answer : C
Explanation
Writable stream is used for write operation and it can take output of readable
stream as input.
A - Node implements File I/O using simple wrappers around standard POSIX
functions.
B - Node File System (fs) module should be imported for File I/O opearations.
https://www.tutorialspoint.com/nodejs/nodejs_online_quiz.htm 2/6
11/5/24, 4:30 PM Node.js Online Quiz
Answer : C
Explanation
Node implements File I/O using simple wrappers around standard POSIX
functions. Node File System (fs) module should be imported for File I/O
opearations.
C - fs.readdir(path, callback)
Answer : C
Explanation
fs.readdir(path, callback)is the method which is used to read a directory.
https://www.tutorialspoint.com/nodejs/nodejs_online_quiz.htm 3/6
11/5/24, 4:30 PM Node.js Online Quiz
Answer : B
Explanation
os.type() returns the operating system name.
Q 7 - Which of the following code print the total system memory of operating
system?
Answer : A
Explanation
os.totalmem() returns the total amount of system memory in bytes.
A - Resolves a hostname (e.g. 'google.com') into the first found A (IPv4) or AAAA
(IPv6) record.
Answer : C
https://www.tutorialspoint.com/nodejs/nodejs_online_quiz.htm 4/6
11/5/24, 4:30 PM Node.js Online Quiz
Explanation
dns.lookup(hostname[, options], callback) resolves a hostname (e.g.
'google.com') into the first found A (IPv4) or AAAA (IPv6) record. options can be
an object or integer. If options is not provided, then IP v4 and v6 addresses are
both valid. If options is an integer, then it must be 4 or 6.
Q 9 - What is Express?
Answer : B
Explanation
Express is a minimal and flexible Node.js web application framework that provides
a robust set of features to develop web and mobile applications.
A - true
B - false
Answer : A
Explanation
https://www.tutorialspoint.com/nodejs/nodejs_online_quiz.htm 5/6
11/5/24, 4:30 PM Node.js Online Quiz
New Quiz
https://www.tutorialspoint.com/nodejs/nodejs_online_quiz.htm 6/6