1. What is the purpose of Node.js in full-stack development?
A. To create static webpages
B. To handle backend logic and APIs
C. To manage frontend UI components
D. To perform database queries
Answer: b) To handle backend logic and APIs
Rationale: Node.js is a JavaScript runtime environment that allows developers to use
JavaScript for backend development, including handling APIs and server-side logic.
2. Which is a key feature of React in frontend development?
A. Component-based architecture
B. Database management
C. File management
D. Server-side rendering
Answer: a) Component-based architecture
Rationale: React uses a component-based architecture where the UI is broken into
reusable components.
,3. Which command is used to start a Node.js application?
A. node start
B. npm start
C. node run
D. npm run
Answer: b) npm start
Rationale: The npm start command is used to run the application in a Node.js project.
4. Which of the following is used for managing dependencies in Node.js projects?
A. npm
B. Git
C. SQL
D. MongoDB
Answer: a) npm
Rationale: npm (Node Package Manager) is used to manage libraries and
dependencies in Node.js projects.
5. Which of the following is a CSS framework used to style web pages?
, A. Bootstrap
B. React
C. Flask
D. Express
Answer: a) Bootstrap
Rationale: Bootstrap is a widely used CSS framework that provides pre-designed
components for building responsive and mobile-first web pages.
6. Which of the following is a feature of a RESTful API?
A. Stateless communication
B. Requires WebSockets
C. Requires real-time data
D. Uses XML exclusively
Answer: a) Stateless communication
Rationale: RESTful APIs follow the principle of stateless communication, meaning
each request is independent and must contain all the information needed.
7. What is the primary function of the frontend in full stack development?
A. To store and manage data
A. To create static webpages
B. To handle backend logic and APIs
C. To manage frontend UI components
D. To perform database queries
Answer: b) To handle backend logic and APIs
Rationale: Node.js is a JavaScript runtime environment that allows developers to use
JavaScript for backend development, including handling APIs and server-side logic.
2. Which is a key feature of React in frontend development?
A. Component-based architecture
B. Database management
C. File management
D. Server-side rendering
Answer: a) Component-based architecture
Rationale: React uses a component-based architecture where the UI is broken into
reusable components.
,3. Which command is used to start a Node.js application?
A. node start
B. npm start
C. node run
D. npm run
Answer: b) npm start
Rationale: The npm start command is used to run the application in a Node.js project.
4. Which of the following is used for managing dependencies in Node.js projects?
A. npm
B. Git
C. SQL
D. MongoDB
Answer: a) npm
Rationale: npm (Node Package Manager) is used to manage libraries and
dependencies in Node.js projects.
5. Which of the following is a CSS framework used to style web pages?
, A. Bootstrap
B. React
C. Flask
D. Express
Answer: a) Bootstrap
Rationale: Bootstrap is a widely used CSS framework that provides pre-designed
components for building responsive and mobile-first web pages.
6. Which of the following is a feature of a RESTful API?
A. Stateless communication
B. Requires WebSockets
C. Requires real-time data
D. Uses XML exclusively
Answer: a) Stateless communication
Rationale: RESTful APIs follow the principle of stateless communication, meaning
each request is independent and must contain all the information needed.
7. What is the primary function of the frontend in full stack development?
A. To store and manage data