NEW
Font size
WorksheetsWeb Development with MERN
Total questions: 20
Worksheet time: 10mins
What does the acronym MERN stand for?
a) MySQL, Express, React, Node
b) MongoDB, Express, React, Node
c) MongoDB, Ember, React, Node
d) MongoDB, Express, Redux, Node
Which database is used in the MERN stack?
a) MySQL
b) PostgreSQL
c) MongoDB
d) Firebase
What is the role of React in the MERN stack?
a) Server-side routing
b) Database management
c) Frontend UI rendering
d) Backend logic
Is MongoDB a SQL or NoSQL database?
a) SQL
b) NoSQL
c) Relational
d) Graph
What is the primary programming language used in the MERN stack?
a) Java
b) Python
c) JavaScript
d) PHP
What is the Virtual DOM in React?
a) A browser feature
b) An in-memory representation of real DOM
c) A server-side rendering engine
d) A styling library
What command is used to create a new React app?
a) npm install react
b) create-react
c) npx create-react-app
d) npm start react
How do you manage state in a functional React component?
a) useClass
b) useState
c) stateManager
d) getState
What hook is commonly used to fetch data in React?
a) useData
b) useFetch
c) useEffect
o d) useConnect
What does JSX stand for?
a) Java Syntax Extension
b) JavaScript XML
c) Java Source Execution
d) None of the above
What is the purpose of Express.js?
a) To style web pages
b) To create server-side logic and routing
c) To connect to databases
d) To fetch APIs
What command is used to initialize a Node.js project?
a) node init
b) npm init -y
c) npm start
d) node create
Which method is used to define an API route in Express.js?
a) app.route()
b) app.get()
c) app.api()
d) router.url()
What is the use of middleware in Express?
a) For CSS rendering
b) To interact with React
c) To handle requests/responses
d) To compile JavaScript
What command is used to install a package using npm?
a) npm get
b) npm install
c) npm add
d) npm run
How are documents stored in MongoDB?
a) Rows and Columns
b) JSON-like format
c) Tables
d) Arrays only
What is the use of Mongoose in a MERN stack project?
a) Frontend styling
b) Database connection and modeling
c) Server-side rendering
d) React routing
Which command is used to connect to a MongoDB database locally?
a) mongod connect
b) mongo
c) mongoose.connect()
d) mongodb.connect()
Which package is commonly used in React to make API requests?
a) jQuery
b) Axios
c) Mongoose
d) Lodash
What is the typical structure of a MERN stack application folder?
a) root > scripts > components
b) client (React) and server (Express/Node) directories
c) assets > js > server
d) app > src > viewss
