MERN Stack Online Assessment Questions & Answers
40 questions for the online assessment stage — 20 easy, 17 medium, 3 hard.
About the online assessment round
Most companies start with an online test: aptitude and reasoning, a few MCQs on core MERN Stack concepts, and one or two short hands-on tasks. It filters a large number of applicants, so speed and accuracy both count.
Tips for the online assessment round
- Practise under a timer: about one minute per MCQ and 15-20 minutes per hands-on task.
- Read every option before answering; tests often include two nearly correct choices.
- Use a stable internet connection, keep your camera on and avoid switching tabs in proctored tests.
- Attempt the questions you are sure about first, then return to the harder ones.
How is Nginx used in front of a MERN application?
Show answer
How do you implement code splitting in a React app?
Show answer
Write a counter component using useState.
Show answer
Set up React Router with a layout, a list page and a detail page using useParams.
Show answer
What is the difference between var, let and const in JavaScript?
Show answer
What is the difference between CommonJS and ES modules in Node.js?
Show answer
Create a basic HTTP server in Node.js without Express that returns JSON.
Show answer
Why does React need keys in lists, and why is using the array index risky?
Show answer
Explain indexes in MongoDB, compound indexes and the ESR rule.
Show answer
How does routing work in a React single-page app using React Router?
Show answer
Write a docker-compose file to run a MERN app locally.
Show answer
Write a Mongoose schema for a user with validation and timestamps.
Show answer
Explain CSR, SSR, hydration and React Server Components.
Show answer
What is the difference between app.use, app.get and express.Router?
Show answer
What is the difference between package.json and package-lock.json, and what do ^ and ~ mean?
Show answer
Why are functional components preferred over class components today?
Show answer
What is a Buffer in Node.js?
Show answer
How should passwords be stored, and why use bcrypt?
Show answer
What are BSON and ObjectId in MongoDB?
Show answer
The React app works locally but shows CORS errors after deployment. What would you check?
Show answer
Build a simple todo list in React with add and delete.
Show answer
What are the important changes in Express 5 compared to Express 4?
Show answer
How should errors be handled in a Node.js application?
Show answer
The business wants total sales per category for the last 30 days. How would you build it in MongoDB?
Show answer
Write a unit test for a function that calculates a cart total.
Show answer
What is a closure and where is it useful?
Show answer
What is a JWT and what are its three parts?
Show answer
Create an AuthContext with a provider and a custom hook.
Show answer
A for loop using var with setTimeout inside prints 3, 3, 3 instead of 0, 1, 2. Why, and how do you fix it?
Show answer
Group an array of order objects by their status using reduce.
Show answer
Write basic CRUD commands in mongosh for a users collection.
Show answer
What practical steps do you take to sanitise and validate input in an Express and MongoDB API?
Show answer
What is the difference between controlled and uncontrolled components?
Show answer
Write an Express middleware that verifies a JWT from the Authorization header.
Show answer
What are the core principles of a RESTful API, and which HTTP methods are idempotent?
Show answer
How does async/await improve on Promise chains, and how do you handle errors with it?
Show answer
When should you use useReducer instead of useState?
Show answer
Explain destructuring, the spread operator and rest parameters.
Show answer
What is Express.js and what is middleware?
Show answer
Frequently asked questions
What happens in the MERN Stack online assessment round?
Most companies start with an online test: aptitude and reasoning, a few MCQs on core MERN Stack concepts, and one or two short hands-on tasks. It filters a large number of applicants, so speed and accuracy both count.
How do I clear the online assessment round?
Practise under a timer: about one minute per MCQ and 15-20 minutes per hands-on task. Read every option before answering; tests often include two nearly correct choices. Use a stable internet connection, keep your camera on and avoid switching tabs in proctored tests.
Which round comes next?
A typical order is online assessment, telephonic screening, one or two technical rounds, a managerial round and HR. Use the other round pages to practise each stage.