MEAN Stack MCQs: This section contains multiple-choice questions on MEAN Stack. All MCQs have the correct answers and explanations. These MCQs will help students and professionals to test their skills and to enhance their knowledge of MEAN Stack.
List of MEAN Stack MCQs
1. Mean stack is a ____.
- Angular-based framework
- JavaScript-based framework
- Python-based framework
Answer: B) JavaScript-based framework
Explanation:
Mean stack is a JavaScript-based framework.
2. Mean stack is used for ____.
- Deploying web applications
- Developing ORM-based applications
- Developing web applications
Answer: C) Developing web applications
Explanation:
Mean stack is used for developing web applications.
3. The M in MEAN stack stands for ____.
- Mongoose
- MySQL
- MongoDB
- Material.js
Answer: C) MongoDB
Explanation:
The M in the MEAN stack stands for MongoDB.
4. The E in MEAN stack stands for ____.
- ES6.js
- Express.js
- Ember.js
- Ext.js
Answer: B) Express.js
Explanation:
The E in MEAN stack stands for express.js.
5. The A in MEAN stack stands for ____.
- Arango DB
- AppML
- Apache Tapestry
- Angular.js
Answer: D) Angular.js
Explanation:
The A in MEAN stack stands for angular.js.
6. The N in MEAN stack stands for ____.
- Next.js
- Node.js
- Neo4J
Answer: B) Node.js
Explanation:
The N in MEAN stack stands for node.js.
7. How many technologies make up the layers of the MEAN stack?
- 7
- 6
- 5
- 4
Answer: D) 4
Explanation:
MongoDB, Express, Angular, and Nod are the four key technologies that make up the layers of the stack.
8. ____ is at the very top of the MEAN stack.
- MongoDB
- Express
- Angular
- Node
Answer: C) Angular
Explanation:
Angular.js is at the very top of the MEAN stack.
9. Which of the following contains strong models for URL routing (mapping an incoming URL to a server function), and manages HTTP requests and responses?
- MongoDB
- Express
- Angular
- Node
Answer: B) Express
Explanation:
Express contains strong models for URL routing (mapping an incoming URL to a server function), and manages HTTP requests and responses.
10. MongoDB stores data in which format?
- Text
- CSV
- JSON
- XLS
Answer: C) JSON
Explanation:
MongoDB stores data in a JSON-like format.
11. Which of the following provides a JavaScript runtime environment?
- MongoDB
- Express
- Angular
- Node
Answer: D) Node
Explanation:
Node provides JavaScript runtime environment.
12. Which of the following company created Angular?
- Apache
- MIT
- MICROSOFT
- IBM
Answer: C) GOOGLE
Explanation:
Google originally developed and maintains Angular.
13. You save all of your program’s variable runtime configuration settings and a collection of application utility functions in which of the following folder?
- App
- Config
- Modules
- Public
Answer: B) Config
Explanation:
You save all of your program’s variable runtime configuration settings and a collection of application utility functions in the config folder.
14. The major front-end AngularJS functionality for the application is in the ____ folder.
- App
- Config
- Modules
- Public
Answer: C) Modules
Explanation:
The major front-end AngularJS functionality for the application is in the modules folder.
15. Which folder houses every static front-end file that the app needs to be provided?
- Public
- Static
- App
Answer: A) Public
Explanation:
Public folder houses every static front-end file that the app needs to be provided.
16. The MEAN.JS boilerplate uses ____ as its web framework.
- MongoDB
- Express
- Angular
- Node
Answer: B) Express
Explanation:
The MEAN.JS boilerplate uses Express as its web framework.
17. Is Node.js based on a single thread?
- Yes
- No
Answer: A) Yes
Explanation:
Yes, Node.js is wholly based on a single thread.
18. Which of the following is used to create a scope for the application?
- $$scope
- Scope__
- $scope
Answer: C) $scope
Explanation:
$ Scope is used to create a scope for the application.
19. Which of the following is used to bind input fields to a model?
- ng-bind
- ng-input
- ng-model_fields
- ng-model
Answer: D) ng-model
Explanation:
ng-model is used to bind input fields to a model.
20. The ____ method is used to build an HTTP server.
- createServer()
- buildServer()
- newServer()
Answer: A) createServer()
Explanation:
The createServer() method is used to build an HTTP server.
21. Which of the following function reads a file from the file system?
- Read
- Readfunction()
- readFile()
Answer: C) readFile()
Explanation:
readFile() is a function that reads a file from the file system.
22. ____ is used to make variables and functions accessible from outside the module.
- Include
- Path
- Require
- Export
Answer: D) Export
Explanation:
The Export is used to make variables and functions accessible from outside the module.
23. Which of the following is used to include external modules?
- Include
- Path
- Require
- Export
Answer: C) Require
Explanation:
Require is used to include external modules.
24. Angular.js is written in ____.
- C++
- C
- Java
- JavaScript
Answer: D) JavaScript
Explanation:
Angular.js is written in JavaScript.
25. MongoDB is written in ____.
- C++
- C
- Java
- JavaScript
- TypeScript
Answer: A) C++
Explanation:
MongoDB is a NoSQL document-oriented database that is written in C++.
26. Which of the following is used to delete a single document from a collection?
- removeOne()
- DelOne()
- DeleteOne()
Answer: C) DeleteOne()
Explanation:
DeleteOne() is used to delete a single document from a collection.
27. The ____ function is used to process HTTP DELETE requests.
- Remove()
- Purge()
- Deactivate()
- Delete()
Answer: D) Delete()
Explanation:
The delete() function is used to process HTTP DELETE requests.
28. Which of the following repeats HTML components for every item in an array?
- ng-repeat
- ng-multi
- ng-dupes
- ng-duplicate
Answer: A) ng-repeat
Explanation:
ng-repeat repeats HTML components for every item in an array.
29. Which of the following is used to make HTTP requests to a server?
- $http
- $ftp
- $url
- $web
Answer: A) $http
Explanation:
$http is used to make HTTP requests to a server.
30. ____ is a function that manages HTTP GET requests.
- Gets()
- Get()
- Join()
Answer: B) Get()
Explanation:
Get() is a function that manages HTTP GET requests.
31. Which of the following is used to search through a collection of documents?
- Locate()
- Search()
- Get()
- Find()
Answer: D) Find()
Explanation:
Find () is used to search through a collection of documents.
32. ____ is a function that manages HTTP POST requests.
- Posts()
- Put()
- Post()
- http()
Answer: C) Post()
Explanation:
Post() is a function that manages HTTP POST requests.
33. Which of the following function is used to add one document to a collection?
- addOne()
- appendOne()
- insertOne()
Answer: C) insertOne()
Explanation:
The insertOne() function is used to add one document to a collection.
34. ____ is used to update a single document in a collection.
- Updates()
- Update_foremost()
- Update!
- UpdateOne()
Answer: D) UpdateOne()
Explanation:
UpdateOne() is used to update a single document in a collection.
35. Which of the following architecture does Mean stack use?
- MVC
- MVM
- MVVM
- Layered
- Master-slave
Answer: A) MVC
Explanation:
The MEAN stack is based on the MVC architecture.