Practice
Resources
Contests
Online IDE
New
Free Mock
Scaler Events New
Practice
Improve your coding skills with our resources
Contests
Compete in popular contests with top coders
Scaler
Explore Offerings by SCALER
Events
Checkout Scaler Academy Events
New

NodeJS MCQ

NodeJS is an open-source client-server environment, which is free and runs on cross platforms(multiple platforms like Windows, Unix, Mac OS, etc). NodeJS uses JavaScript on the server side. 

NodeJS is preferred because it uses asynchronous programming. It eliminates the wait time for processing a task and directly continues with the next request made by the server. It runs single-threaded, non-blocking, asynchronous programming, which is very memory efficient.

Functionalities of NodeJS:

  1. Generates dynamic page content.
  2. On the server-side, it can create, open, read, write, delete, and close files.
  3. It can collect form data.
  4. It can add, delete and modify data in the database.

NodeJS tasks are done in NodeJS files. These files contain tasks that will be executed on certain events. These files must be instantiated on the server before having any effect, and have the file extension ‘.js’.

NodeJS MCQs

Events | Powered By
1. 

Which of the following statements are true?

2. 

_____ is an interactive shell that processes Node.

3. 

What is the full form of REPL?

4. 

Node.js is written in which language?

5. 

How can we install the node body-parser module?

6. 

Which of the following are examples of node modules?

7. 

To include the HTTP server in the node module, what function do we use?

8. 

How can we expose node modules?

9. 

What method is used to return the current working directory of the process?

10. 

Default scope in Node.js application is?

11. 

How many node objects methods are available?

12. 

We can kill a process in Node.js using the keyboard shortcut?

13. 

What is the full form of npm?

14. 

How can we initiate a NodeJS file called Hello in Node?

15. 

NodeJS is supported on which of the following platforms?

16. 

____ is a debugging tool for NodeJS?

17. 

The node object property which is used to return the node just before the current node is?

18. 

The advantages of using node modules are?

19. 

Which of the following are examples of NodeJS streams types?

20. 

The command to install nodemon in NodeJS is?

21. 

Which of the following are built-in node modules?

22. 

_ variable in REPL session of NodeJS is used for?

23. 

Which of the following statements are true?

  1. NodeJS is multithreaded.
  2. The Buffer class is a global class that can be accessed without importing a buffer module.
24. 

When does a stream fire a data event?

25. 

For path specific operations which of the following operations is required to be used?

26. 

Which of the following operations can we do with the NodeJS events module?

27. 

How can we check the installed version of Node?

28. 

What command do we use to list all the node modules that are installed globally?

29. 

Which of the following is a valid HTTP method?

30. 

Which of the following fs module is used to close a file?

31. 

Which of the following NodeJS module splits up a web address into readable parts?

32. 

NodeJS uses an event-driven, non-blocking IO model?

33. 

Which NodeJS statement is used to list all the locally installed NodeJS modules?

34. 

A visual development environment for NodeJS is?

35. 

Which of the following NodeJS modules is used for file uploads?

36. 

Which node module is used to handle binary data?

37. 

Which node module is used for zip and unzip functionalities?

38. 

Which of the following is used for cryptographic protocols to secure communication over the web?

39. 

Which node module is used to serve static resources in NodeJS?

40. 

_____ is a software service that allows 2 or more applications to talk to each other?

41. 

Which of the following are StringDecoder class methods?

42. 

Which of the following NodeJS modules is now deprecated?

43. 

What does the fs module stand for?

44. 

Which of the following are the benefits of using modules?

45. 

Applications built on NodeJS can access which of the following types of databases?

46. 

Which of the following are NodeJS global objects?

47. 

JSON was natively constructed on which language?

48. 

Which NodeJS object specifies the name of the directory which contains the code?

49. 

What function is used to fire an event?

50. 

Which of the following parameters is taken by the buffer.toString method?

51. 

What is a callback?

Get Placed at Top Product Companies with Scaler Know More 
Get Placed at Top Product Companies with Scaler Know More 
Get Placed at Top Product Companies with Scaler
Sat transparent 640a34d454880bf68e3bfdf33f2389f2214043f59ad18b4c7f7b114e834fb257.svg

Point markers b3add1cc88e4996b2df6e0aedb9f0d1b65fa73c51b7ada8fbee3895a2aa11802.svg Personalised feedback report with solutions
Point markers b3add1cc88e4996b2df6e0aedb9f0d1b65fa73c51b7ada8fbee3895a2aa11802.svg Real life Interview Questions
Point markers b3add1cc88e4996b2df6e0aedb9f0d1b65fa73c51b7ada8fbee3895a2aa11802.svg Identify exact topics to improve

Your feedback is important to help us improve.
Free Mock Assessment
Fill up the details for personalised experience.
All fields are mandatory
Current Employer *
Enter company name *
Graduation Year *
Select an option *
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
Phone Number *
OTP will be sent to this number for verification
+1 *
+1
Change Number
Phone Number *
OTP will be sent to this number for verification
+1 *
+1
Change Number
Graduation Year *
Graduation Year *
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
*Enter the expected year of graduation if you're student
Current Employer *
Company Name *
Please verify your phone number
Edit
Resend OTP
By clicking on Start Test, I agree to be contacted by Scaler in the future.
Already have an account? Log in
Free Mock Assessment
Instructions from Interviewbit
Start Test