wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Web Development with MERN

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.
  1. What does the acronym MERN stand for?

a)
  1. a) MySQL, Express, React, Node

b)
  1. b) MongoDB, Express, React, Node

c)
  1. c) MongoDB, Ember, React, Node

d)
  1. d) MongoDB, Express, Redux, Node

2.
  1. Which database is used in the MERN stack?

a)
  1. a) MySQL

b)
  1. b) PostgreSQL

c)
  1. c) MongoDB

d)
  1. d) Firebase

3.
  1. What is the role of React in the MERN stack?

a)
  1. a) Server-side routing

b)
  1. b) Database management

c)
  1. c) Frontend UI rendering

d)
  1. d) Backend logic

4.

Is MongoDB a SQL or NoSQL database?

a)
  1. a) SQL

b)
  1. b) NoSQL

c)
  1. c) Relational

d)
  1. d) Graph

5.
  1. What is the primary programming language used in the MERN stack?

a)
  1. a) Java

b)
  1. b) Python

c)
  1. c) JavaScript

d)
  1. d) PHP

6.
  1. What is the Virtual DOM in React?

a)
  1. a) A browser feature

b)
  1. b) An in-memory representation of real DOM

c)
  1. c) A server-side rendering engine

d)
  1. d) A styling library

7.
  1. What command is used to create a new React app?

a)
  1. a) npm install react

b)
  1. b) create-react

c)
  1. c) npx create-react-app

d)
  1. d) npm start react

8.

    How do you manage state in a functional React component?

a)

  a) useClass

b)

  b) useState

c)

    c) stateManager

d)

    d) getState

9.

  What hook is commonly used to fetch data in React?

a)

  a) useData

b)

    b) useFetch

c)

  c) useEffect

d)

o    d) useConnect

10.

     What does JSX stand for?

a)
  • a) Java Syntax Extension

b)
  • b) JavaScript XML

c)
  • c) Java Source Execution

d)
  • d) None of the above

11.
  1. What is the purpose of Express.js?

a)
  • a) To style web pages

b)
  • b) To create server-side logic and routing

c)
  • c) To connect to databases

d)
  • d) To fetch APIs

12.
  1. What command is used to initialize a Node.js project?

a)
  • a) node init

b)
  • b) npm init -y

c)
  • c) npm start

d)
  • d) node create

13.
  1. Which method is used to define an API route in Express.js?

a)
  • a) app.route()

b)
  • b) app.get()

c)
  • c) app.api()

d)
  • d) router.url()

14.
  1. What is the use of middleware in Express?

a)
  • a) For CSS rendering

b)
  • b) To interact with React

c)
  • c) To handle requests/responses

d)
  • d) To compile JavaScript

15.
  1. What command is used to install a package using npm?

a)
  • a) npm get

b)
  • b) npm install

c)
  • c) npm add

d)
  • d) npm run

16.
  1. How are documents stored in MongoDB?

a)
  • a) Rows and Columns

b)
  • b) JSON-like format

c)
  • c) Tables

d)
  • d) Arrays only

17.
  1. What is the use of Mongoose in a MERN stack project?

a)
  • a) Frontend styling

b)
  • b) Database connection and modeling

c)
  • c) Server-side rendering

d)
  • d) React routing

18.
  1. Which command is used to connect to a MongoDB database locally?

a)
  • a) mongod connect

b)
  • b) mongo

c)
  • c) mongoose.connect()

d)
  • d) mongodb.connect()


19.
  1. Which package is commonly used in React to make API requests?

a)
  • a) jQuery

b)
  • b) Axios

c)
  • c) Mongoose

d)
  • d) Lodash

20.
  1. What is the typical structure of a MERN stack application folder?

a)
  • a) root > scripts > components

b)
  • b) client (React) and server (Express/Node) directories

c)
  • c) assets > js > server

d)
  • d) app > src > viewss