CS – ITSW 2120 D276 Web Development
Foundations
Complete Final Assessment (Qns & Ans)
2025
Question 1 (Multiple Choice)
Case:
A rapidly growing e-commerce site originally built as a
monolithic application is now suffering from performance
bottlenecks and deployment difficulties. The development team is
considering a migration to a more scalable system architecture.
Question:
Which architectural style best facilitates independent scaling of
application components and fault isolation?
A. Monolithic Architecture
B. Service-Oriented Architecture (SOA)
©2025
,C. Microservices Architecture
D. Layered Architecture
Correct ANS: C. Microservices Architecture
Rationale:
Microservices architecture decomposes an application into small,
loosely coupled services that can be developed, deployed, and
scaled independently. This architectural style provides better fault
isolation and scalability compared to monolithic or traditional
layered systems.
---
Question 2 (Fill in the Blank)
Case:
A developer is building a Progressive Web App (PWA) that must
work offline and load quickly even under poor network
conditions.
Statement:
In a PWA, a ______ is used as a client-side script to intercept
network requests and cache responses for offline access.
©2025
, Correct ANS: service worker
Rationale:
The service worker acts as a proxy between the web application
and the network, enabling caching of assets and controlling
network requests. This is essential for providing offline
functionality and improving load times.
---
Question 3 (True/False)
Case:
A modern single-page application (SPA) dynamically updates
content without reloading the entire page, relying on the
Document Object Model (DOM).
Statement:
The DOM is a hierarchical tree representation of the webpage that
can be modified in real time by JavaScript to reflect dynamic
content changes.
Correct ANS: True
©2025
, Rationale:
The DOM represents the structure of a webpage in a tree-like
format. JavaScript manipulates this structure to update page
content dynamically, which is a core mechanism behind SPAs.
---
Question 4 (Multiple Response)
Case:
A web development team is implementing security measures
against common attacks such as Cross-Site Scripting (XSS), SQL
Injection, and Cross-Site Request Forgery (CSRF).
Question:
Which of the following practices are effective for mitigating these
vulnerabilities? (Select all that apply.)
A. Input validation
B. Output encoding
C. Using prepared statements for database queries
D. Disabling JavaScript on the client-side
E. Implementing CSRF tokens
©2025
Foundations
Complete Final Assessment (Qns & Ans)
2025
Question 1 (Multiple Choice)
Case:
A rapidly growing e-commerce site originally built as a
monolithic application is now suffering from performance
bottlenecks and deployment difficulties. The development team is
considering a migration to a more scalable system architecture.
Question:
Which architectural style best facilitates independent scaling of
application components and fault isolation?
A. Monolithic Architecture
B. Service-Oriented Architecture (SOA)
©2025
,C. Microservices Architecture
D. Layered Architecture
Correct ANS: C. Microservices Architecture
Rationale:
Microservices architecture decomposes an application into small,
loosely coupled services that can be developed, deployed, and
scaled independently. This architectural style provides better fault
isolation and scalability compared to monolithic or traditional
layered systems.
---
Question 2 (Fill in the Blank)
Case:
A developer is building a Progressive Web App (PWA) that must
work offline and load quickly even under poor network
conditions.
Statement:
In a PWA, a ______ is used as a client-side script to intercept
network requests and cache responses for offline access.
©2025
, Correct ANS: service worker
Rationale:
The service worker acts as a proxy between the web application
and the network, enabling caching of assets and controlling
network requests. This is essential for providing offline
functionality and improving load times.
---
Question 3 (True/False)
Case:
A modern single-page application (SPA) dynamically updates
content without reloading the entire page, relying on the
Document Object Model (DOM).
Statement:
The DOM is a hierarchical tree representation of the webpage that
can be modified in real time by JavaScript to reflect dynamic
content changes.
Correct ANS: True
©2025
, Rationale:
The DOM represents the structure of a webpage in a tree-like
format. JavaScript manipulates this structure to update page
content dynamically, which is a core mechanism behind SPAs.
---
Question 4 (Multiple Response)
Case:
A web development team is implementing security measures
against common attacks such as Cross-Site Scripting (XSS), SQL
Injection, and Cross-Site Request Forgery (CSRF).
Question:
Which of the following practices are effective for mitigating these
vulnerabilities? (Select all that apply.)
A. Input validation
B. Output encoding
C. Using prepared statements for database queries
D. Disabling JavaScript on the client-side
E. Implementing CSRF tokens
©2025