Practice
Resources
Contests
Online IDE
New
Free Mock
Events New Scaler
Practice
Improve your coding skills with our resources
Contests
Compete in popular contests with top coders
logo
Events
Attend free live masterclass hosted by top tech professionals
New
Scaler
Explore Offerings by SCALER
/ Interview Guides / NodeJS MCQ

NodeJS MCQ

Last Updated: Jan 08, 2024
Certificate included
About the Speaker
What will you Learn?
Register Now

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

1. 

Which of the following is a valid HTTP method?

Create a free personalised study plan Create a FREE custom study plan
Get into your dream companies with expert guidance
Get into your dream companies with expert..
Real-Life Problems
Prep for Target Roles
Custom Plan Duration
Flexible Plans
2. 

Which node module is used for zip and unzip functionalities?

3. 

Which node module is used to handle binary data?

4. 

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

5. 

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

Explore InterviewBit’s Exclusive Live Events
Explore Exclusive Events
By
No More Events to show!
No More Events to show!
No More Events to show!
No More Events to show!
Certificate included
About the Speaker
What will you Learn?
Register Now
6. 

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

7. 

Which of the following are built-in node modules?

Start Your Coding Journey With Tracks Start Your Coding Journey With Tracks
Master Data Structures and Algorithms with our Learning Tracks
Master Data Structures and Algorithms
Topic Buckets
Mock Assessments
Reading Material
Earn a Certificate
8. 

Which of the following are examples of node modules?

9. 

Which of the following are examples of NodeJS streams types?

10. 

Which of the following are NodeJS global objects?

11. 

Which of the following are StringDecoder class methods?

12. 

Which of the following are the benefits of using modules?

Discover your path to a   Discover your path to a   Successful Tech Career for FREE! Successful Tech Career!
Answer 4 simple questions & get a career plan tailored for you
Answer 4 simple questions & get a career plan tailored for you
Interview Process
CTC & Designation
Projects on the Job
Referral System
Try It Out
2 Lakh+ Roadmaps Created
13. 

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

14. 

When does a stream fire a data event?

15. 

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

16. 

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

17. 

Which of the following NodeJS modules is now deprecated?

18. 

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

19. 

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

20. 

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

21. 

Which of the following statements are true?

22. 

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.
23. 

_ variable in REPL session of NodeJS is used for?

24. 

____ is a debugging tool for NodeJS?

25. 

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

26. 

_____ is an interactive shell that processes Node.

27. 

The advantages of using node modules are?

28. 

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

29. 

Default scope in Node.js application is?

30. 

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

31. 

How can we check the installed version of Node?

32. 

How can we expose node modules?

33. 

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

34. 

How can we install the node body-parser module?

35. 

How many node objects methods are available?

36. 

JSON was natively constructed on which language?

37. 

Node.js is written in which language?

38. 

NodeJS is supported on which of the following platforms?

39. 

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

40. 

A visual development environment for NodeJS is?

41. 

The command to install nodemon in NodeJS is?

42. 

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

43. 

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

44. 

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

45. 

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

46. 

What does the fs module stand for?

47. 

What function is used to fire an event?

48. 

What is a callback?

49. 

What is the full form of npm?

50. 

What is the full form of REPL?

51. 

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

Excel at your interview with Masterclasses Know More
Certificate included
What will you Learn?
Free Mock Assessment
Fill up the details for personalised experience.
Phone Number *
OTP will be sent to this number for verification
+1 *
+1
Change Number
Graduation Year *
Graduation Year *
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
2028
2029
*Enter the expected year of graduation if you're student
Current Employer
Company Name
College you graduated from
College/University Name
Job Title
Job Title
Engineering Leadership
Software Development Engineer (Backend)
Software Development Engineer (Frontend)
Software Development Engineer (Full Stack)
Data Scientist
Android Engineer
iOS Engineer
Devops Engineer
Support Engineer
Research Engineer
Engineering Intern
QA Engineer
Co-founder
SDET
Product Manager
Product Designer
Backend Architect
Program Manager
Release Engineer
Security Leadership
Database Administrator
Data Analyst
Data Engineer
Non Coder
Other
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