Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 28 pages
Exam (elaborations)

SD 3 – Full Stack Development 6

Document preview thumbnail
Preview 3 out of 28 pages

SD 3 – Full Stack Development 6

Content preview

1. Which command is used to create a new Node.js project?

A. node init

B. npm install

C. npm init

D. node create

Answer: c) npm init

Rationale: The npm init command is used to create a new Node.js project by

generating a package.json file.




2. What is the purpose of the componentDidMount lifecycle method in React?

A. To handle error boundaries

B. To initialize data after the component mounts

C. To update the state of the component

D. To render the component

Answer: b) To initialize data after the component mounts

Rationale: componentDidMount is called after a component has mounted to the DOM,

and it’s commonly used for data fetching or initialization tasks.

,3. Which of the following is a feature of SQL databases?

A. Schema-less structure

B. Relational data model with tables and rows

C. Horizontal scaling

D. JSON-like storage format

Answer: b) Relational data model with tables and rows

Rationale: SQL databases are relational and organize data into tables with rows and

columns, enforcing a structured schema.




4. Which language is commonly used for backend development in full-stack

development?

A. HTML

B. Python

C. CSS

D. SQL

Answer: b) Python

Rationale: Python is a popular backend language that is often used in full-stack

development, alongside other languages such as Node.js, Java, and PHP.

, 5. Which of the following is a valid React hook used for managing state?

A. useEffect

B. useState

C. useContext

D. All of the above

Answer: d) All of the above

Rationale: useState, useEffect, and useContext are all valid React hooks used for

managing state, side effects, and context, respectively.




6. 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.

Document information

Uploaded on
March 17, 2025
Number of pages
28
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$10.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
douglasmugwe82
5.0
(1)
Sold
2
Followers
0
Items
4239
Last sold
10 months ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions