Explore topic-wise InterviewSolutions in .

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.

What is the purpose of process object?

Answer»
2.

What is the purpose of console object?

Answer»
3.

What is the purpose of setInterval function?

Answer»
4.

What is the purpose of clearTimeout function?

Answer»
5.

What is the purpose of setTimeout function?

Answer»
6.

What is the purpose of __dirname variable?

Answer»
7.

What is the purpose of __filename variable?

Answer»
8.

How will you read a directory?

Answer»
9.

How will you delete a directory?

Answer»
10.

How will you create a directory?

Answer»
11.

How will you delete a file using Node?

Answer»
12.

How will you truncate a file using Node?

Answer»
13.

How will you get information about a file using Node?

Answer»
14.

How will you close a file using Node?

Answer»
15.

How will you write a file using Node?

Answer»
16.

How will you read a file using Node?

Answer»
17.

How will you open a file using Node?

Answer»
18.

What is Chaining in Node?

Answer»
19.

Name some of the events fired by streams.

Answer»
20.

How many types of streams are present in Node.

Answer»
21.

What are streams?

Answer»
22.

Name some of the flags used in read/write operation on files.

Answer»
23.

What is difference between synchronous and asynchronous method of fs module?

Answer»
24.

fs module provides both synchronous as well as asynchronous methods.

Answer»
25.

Which module is used for web based operations?

Answer»
26.

Which module is used for buffer based operations?

Answer»
27.

Which module is used for file based operations?

Answer»
28.

What is Piping in Node?

Answer»
29.

What is purpose of Buffer class in Node?

Answer»
30.

What is Event Emmitter?

Answer»
31.

What is Event Loop?

Answer»
32.

How Node prevents blocking code?

Answer»
33.

What is a blocking code?

Answer»
34.

What is Callback?

Answer»
35.

How to update a dependency using npm?

Answer»
36.

How to uninstall a dependency using npm?

Answer»
37.

Name some of the attributes of package.json?

Answer»
38.

What is Package.json?

Answer»
39.

How to check the already installed dependencies which are globally installed using npm?

Answer»
40.

What is local installation of dependencies?

Answer»
41.

What is global installation of dependencies?

Answer»
42.

What is npm?

Answer»
43.

What is the use of Underscore variable in REPL?

Answer»
44.

What is the difference of using var and not using var in REPL while dealing with variables?

Answer»
45.

Can we evaluate simple expression using Node REPL

Answer»
46.

What is REPL in context of Node?

Answer»
47.

Is Node a single threaded application?

Answer»
48.

Is it free to use Node.js?

Answer»
49.

What are the benefits of using Node.js?

Answer»
50.

What do you mean by Asynchronous API?

Answer»