[go: up one dir, main page]

0% found this document useful (0 votes)
61 views2 pages

Certification in MERN Stack Development

The document outlines a certification exam in MERN Stack Development, consisting of a theoretical section with 20 multiple-choice questions and a practical section where candidates must complete two out of six project options. The theoretical questions cover topics such as npm, Express.js, Mongoose, React, and REST architecture. The practical projects include building a CRUD REST API, a React front-end application, JWT-based authentication, a To-Do list, an image upload gallery, and server-side pagination and sorting.

Uploaded by

netddirector
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views2 pages

Certification in MERN Stack Development

The document outlines a certification exam in MERN Stack Development, consisting of a theoretical section with 20 multiple-choice questions and a practical section where candidates must complete two out of six project options. The theoretical questions cover topics such as npm, Express.js, Mongoose, React, and REST architecture. The practical projects include building a CRUD REST API, a React front-end application, JWT-based authentication, a To-Do list, an image upload gallery, and server-side pagination and sorting.

Uploaded by

netddirector
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

Certification in MERN Stack Development

Total Marks-100 Total Hours- 4 Hours

1 hour For Theory


Answer all questions (20x2=40)

1. What is npm?
a) Node Project Manager
b) New Package Module
c) Node Package Manager
d) Network Protocol Module
2. What is the primary purpose of the `package.json` file?
a) To store JavaScript code snippets
b) To list project dependencies and metadata
c) To configure MongoDB schemas
d) To define React component props
3. What is Express.js?
a) A. A front-end UI library
b) B. A testing framework for Node
c) C. A minimal web-application framework for Node.js
d) D. A MongoDB GUI client
4. How do you define a GET route for `/users` in Express?
a) A. `app.get('/users', handler)`
b) B. `app.fetch('/users', handler)`
c) C. `router.route('/users').get(handler)`
d) D. Both A and C
5. Which principle underlies REST architecture?
a) A. Real-time Event Streaming
b) B. Representational State Transfer
c) C. Random State Transfer
d) D. Remote Scripting Technique
6. How do you define a schema in Mongoose?
a) A. `mongoose.createSchema({ … })`
b) B. `new mongoose.Schema({ … })`
c) C. `Schema.define({ … })`
d) D. `mongoose.model('Name', { … })`
7. What is a Mongoose model?
a) A. A compiled version of an interface
b) B. A class for creating and reading documents
c) C. A front-end component template
d) A database backup file
8. Define “middleware” in Express and give an example.
9. How do you define a route in Express?
10. What is Mongoose and what problem does it solve?
11. How do you define a schema in Mongoose?
12. How do you connect a Node.js application to MongoDB using Mongoose?
13. What is “state” in React?
14. What are “props” in React?
15. What is the Virtual DOM?
16. What are React Hooks? Name two commonly used hooks.
17. How does the `useState` hook work?
18. How do you handle side effects in React?
19. What is React Router used for?
20. What problem does CORS address?

3 Hours of Practical
Practical Exam (Answer Any of Two) 60 Marks

1.CRUD REST API for Course Management


Build a Node.js + Express + MongoDB API to manage courses.
Requirements: - Course schema: title, description, duration, instructor - Implement
GET, POST, PUT, DELETE endpoints - Input validation using Joi or express-
validator - Use Mongoose for data layer

2.React Student Directory Front-End


Create a React app that interacts with a REST API. Requirements: - Fetch &
display paginated list of students - Add & Edit student via modal forms - Show
loading states & error messages

3.JWT-Based Authentication in MERN


Implement user sign-up, login, and protected routes. Requirements: -
/auth/register & /auth/login endpoints - Hash passwords with bcrypt - Issue JWT on
login - Protect /profile route - React pages for Register, Login, and Profile display

4.To-Do List with Search & Filters


End-to-end MERN To-Do application. Requirements: - CRUD for tasks with
title, dueDate, status -Search on title and filter by status via query params - Frontend
list view with search box & filter dropdown
5.Image Upload & Gallery
Implement file upload support and gallery. Requirements: - POST /upload
using Multer to save images - Store metadata in MongoDB - GET /images endpoint -
React page with upload form & gallery grid

6. Server-Side Pagination & Sorting


Build a paginated & sortable product listing. Requirements: - Product schema:
name, price, category -GET /products?page=&limit=&sortBy=&order= - Frontend
table with pagination controls and sortable columns

You might also like