1. Which of the following tools is used for building a single-page application (SPA)?
A. Django
B. React
C. Express
D. SQL
Answer: b) React
Rationale: React is a JavaScript library specifically designed for building single-page
applications (SPAs) with dynamic content updates.
2. Which of the following is used to define routes in an Express.js application?
A. app.set()
B. app.route()
C. app.listen()
D. app.get()
Answer: b) app.route()
Rationale: app.route() is used in Express.js to define and chain multiple route handlers
for a specific path.
,3. Which of the following HTTP methods is typically used to retrieve data from a
server?
A. POST
B. GET
C. PUT
D. DELETE
Answer: b) GET
Rationale: The GET method is used to retrieve data from a server without modifying
the resource.
4. Which of the following HTTP status codes indicates a successful request?
A. 404
B. 500
C. 200
D. 301
Answer: c) 200
Rationale: HTTP status code 200 indicates a successful request and that the server has
successfully processed the request.
, 5. Which of the following is an example of a backend JavaScript framework?
A. Express
B. Vue.js
C. React
D. Bootstrap
Answer: a) Express
Rationale: Express is a popular backend framework for Node.js, used to handle
routing and server-side logic.
6. Which of the following best describes the concept of REST in full-stack
development?
A. A communication protocol based on WebSockets
B. A stateful client-server architecture
C. A set of architectural principles for designing networked applications
D. A file format used for transferring data
Answer: c) A set of architectural principles for designing networked applications
A. Django
B. React
C. Express
D. SQL
Answer: b) React
Rationale: React is a JavaScript library specifically designed for building single-page
applications (SPAs) with dynamic content updates.
2. Which of the following is used to define routes in an Express.js application?
A. app.set()
B. app.route()
C. app.listen()
D. app.get()
Answer: b) app.route()
Rationale: app.route() is used in Express.js to define and chain multiple route handlers
for a specific path.
,3. Which of the following HTTP methods is typically used to retrieve data from a
server?
A. POST
B. GET
C. PUT
D. DELETE
Answer: b) GET
Rationale: The GET method is used to retrieve data from a server without modifying
the resource.
4. Which of the following HTTP status codes indicates a successful request?
A. 404
B. 500
C. 200
D. 301
Answer: c) 200
Rationale: HTTP status code 200 indicates a successful request and that the server has
successfully processed the request.
, 5. Which of the following is an example of a backend JavaScript framework?
A. Express
B. Vue.js
C. React
D. Bootstrap
Answer: a) Express
Rationale: Express is a popular backend framework for Node.js, used to handle
routing and server-side logic.
6. Which of the following best describes the concept of REST in full-stack
development?
A. A communication protocol based on WebSockets
B. A stateful client-server architecture
C. A set of architectural principles for designing networked applications
D. A file format used for transferring data
Answer: c) A set of architectural principles for designing networked applications