MEAN Stack Quiz (Beginner) - All Questions
This beginner-level MEAN Stack quiz helps you understand the fundamentals of MongoDB, Express.js, Angular, and Node.js through easy and practical MCQs. Ideal for students, freshers, and beginners starting full-stack web development or preparing for entry-level interviews.
Question 1: What does MEAN stand for?
- MongoDB, Express, Angular, Node
- MySQL, Express, Angular, Node
- MongoDB, Ember, Angular, Node
- MongoDB, Express, React, Node
Explanation: MEAN stands for MongoDB, Express.js, Angular, and Node.js.
Question 2: Which technology in MEAN is used for frontend development?
- MongoDB
- Express.js
- Angular
- Node.js
Explanation: Angular is used to build the frontend UI.
Question 3: Which MEAN component is a NoSQL database?
- MySQL
- PostgreSQL
- MongoDB
- Oracle
Explanation: MongoDB is a NoSQL document-based database.
Question 4: Which language is commonly used across the MEAN stack?
Explanation: JavaScript is used across frontend and backend in MEAN.
Question 5: What is Node.js mainly used for?
- UI styling
- Server-side development
- Database storage
- Designing layouts
Explanation: Node.js is used to build server-side applications.
Question 6: What is Express.js?
- Frontend framework
- Testing library
- Node.js framework
- Database
Explanation: Express.js is a backend framework built on Node.js.
Question 7: Which Angular feature binds data between component and view?
- Routing
- Dependency Injection
- Data Binding
- Services
Explanation: Data binding connects the component and the view.
Question 8: Which command initializes a Node.js project?
- node init
- npm start
- npm init
- node start
Explanation: npm init initializes a Node.js project.
Question 9: Which file stores project dependencies in Node.js?
- index.js
- server.js
- package.json
- config.json
Explanation: package.json stores dependencies and scripts.
Question 10: Which Angular file defines a component?
- component.html
- component.css
- component.ts
- component.json
Explanation: Angular components are defined in .ts files.
Question 11: Which HTTP method is used to retrieve data?
Explanation: GET is used to fetch data.
Question 12: Which HTTP method is used to create data?
Explanation: POST is used to create new resources.
Question 13: Which format does MongoDB use to store data?
Explanation: MongoDB stores data internally in BSON format.
Question 14: Which Angular directive repeats elements?
- *ngIf
- *ngFor
- ngRepeat
- ngLoop
Explanation: *ngFor is used to loop through lists.
Question 15: Which command starts an Angular application?
- npm start
- ng run
- ng serve
- node serve
Explanation: ng serve starts the Angular development server.
Question 16: Which Express method defines GET routes?
- app.post()
- app.use()
- app.get()
- app.route()
Explanation: app.get() defines GET routes.
Question 17: Which middleware parses JSON in Express?
- bodyParser
- express.json()
- jsonParser()
- dataParser()
Explanation: express.json() parses incoming JSON requests.
Question 18: Which Angular feature is used for navigation?
- Services
- Pipes
- Routing
- Modules
Explanation: Routing enables navigation between views.
Question 19: Which MongoDB method retrieves documents?
- insert()
- find()
- update()
- delete()
Explanation: find() retrieves documents from a collection.
Question 20: Which Node.js module handles file operations?
Explanation: fs module handles file system operations.
Question 21: Which HTTP status code means success?
Explanation: 200 indicates a successful request.
Question 22: Which Angular feature formats data in templates?
- Services
- Directives
- Pipes
- Modules
Explanation: Pipes format data in templates.
Question 23: Which MongoDB command inserts a document?
- findOne()
- insertOne()
- updateOne()
- deleteOne()
Explanation: insertOne() adds a new document.
Question 24: Which Node.js function starts the server?
- server.run()
- app.listen()
- node.start()
- server.open()
Explanation: app.listen() starts the server.
Question 25: Which Angular decorator defines a component?
- @NgModule
- @Injectable
- @Component
- @Directive
Explanation: @Component defines Angular components.
Question 26: Which file usually contains Express routes?
- routes.js
- index.html
- package.json
- config.env
Explanation: routes.js commonly stores Express routes.
Question 27: Which MongoDB port is default?
Explanation: MongoDB runs on port 27017 by default.
Question 28: Which Angular feature shares data between components?
- Modules
- Services
- Directives
- Pipes
Explanation: Services share data across components.
Question 29: Which Node.js package manages environment variables?
Explanation: dotenv loads environment variables.
Question 30: Which MongoDB operation updates data?
- insert()
- find()
- updateOne()
- read()
Explanation: updateOne() updates existing documents.
Question 31: Which Angular feature handles forms?
- Modules
- FormsModule
- HttpClient
- Router
Explanation: FormsModule handles Angular forms.
Question 32: Which Express middleware logs HTTP requests?
- helmet
- cors
- morgan
- body-parser
Explanation: morgan logs HTTP requests.
Question 33: Which HTTP method deletes data?
Explanation: DELETE removes data.
Question 34: Which Angular lifecycle hook runs first?
- ngOnInit
- ngAfterViewInit
- ngOnChanges
- ngOnDestroy
Explanation: ngOnChanges runs before ngOnInit.
Question 35: Which Node.js feature allows non-blocking I/O?
- Multithreading
- Event loop
- Worker threads
- Callbacks only
Explanation: Event loop enables non-blocking I/O.
Question 36: Which MongoDB feature improves query speed?
- Collections
- Documents
- Indexes
- Schemas
Explanation: Indexes improve query performance.
Question 37: Which Angular CLI command creates a component?
- ng new component
- ng add component
- ng generate component
- ng create component
Explanation: ng generate component creates a new component.
Question 38: Which file is the entry point of an Angular app?
- app.module.ts
- main.ts
- index.html
- app.component.ts
Explanation: main.ts is the entry point.
Question 39: Which Express method handles middleware?
- app.get()
- app.use()
- app.post()
- app.listen()
Explanation: app.use() applies middleware.
Question 40: Which Angular feature enables dependency injection?
- Modules
- Services
- DI system
- Routing
Explanation: Angular has a built-in DI system.
Question 41: Which MongoDB command deletes documents?
- remove()
- deleteOne()
- drop()
- clear()
Explanation: deleteOne() removes a document.
Question 42: Which Node.js object handles requests?
Explanation: req contains incoming request data.
Question 43: Which Angular feature helps navigation guards?
- Services
- Pipes
- Route Guards
- Modules
Explanation: Route Guards control navigation access.
Question 44: Which MongoDB method sorts results?
- order()
- group()
- sort()
- arrange()
Explanation: sort() orders query results.
Question 45: Which HTTP status code means resource not found?
Explanation: 404 indicates resource not found.
Question 46: Which Angular feature enables lazy loading?
- Services
- Modules
- Components
- Pipes
Explanation: Lazy loading is implemented using modules.
Question 47: Which Node.js module handles paths?
Explanation: path module manages file paths.
Question 48: Which MongoDB feature enforces schema structure?
- Indexes
- Collections
- Mongoose schemas
- Documents
Explanation: Mongoose schemas enforce structure.
Question 49: Which Angular feature handles HTTP requests?
- HttpClient
- FormsModule
- Router
- Injector
Explanation: HttpClient handles HTTP requests.