Web Development Foundations
3.0 Credits
Objective Assessment Review (Qns &
Ans)
2025
©2025
, Multiple Choice Questions
Question 1:
A web developer is tasked with creating a complex, two‑dimensional
responsive grid layout without relying on third‑party frameworks. Which
CSS layout module is best suited for this requirement?
A. Flexbox
B. CSS Grid
C. Float Layouts
D. Inline‑block layouts
Correct ANS: B. CSS Grid
Rationale:
CSS Grid is specifically designed for two-dimensional layouts, providing
powerful and flexible control over rows and columns in a grid. Unlike
Flexbox—which is mainly one‑dimensional—CSS Grid enables precise
positioning and responsive design without external frameworks.
---
Question 2:
An analytics dashboard requires interactive client‑side updates with low
latency. Which JavaScript library is renowned for its declarative,
component‑based architecture and efficient virtual DOM updates?
A. AngularJS
B. React
C. jQuery
D. Backbone.js
Correct ANS: B. React
Rationale:
©2025
, React uses a virtual DOM to minimize direct manipulations of the
browser DOM, enabling fast and efficient re‑rendering of components. Its
component‑based architecture makes it easier to manage state and build
interactive user interfaces crucial for data-intensive applications.
---
Question 3:
To secure communication between a web client and server, which
protocol combines encryption, authentication, and integrity to guard
data in transit?
A. HTTP/1.1
B. HTTPS (using TLS)
C. FTP
D. WebSocket Secure (WSS)
Correct ANS: B. HTTPS (using TLS)
Rationale:
HTTPS uses TLS (Transport Layer Security) to encrypt data during
transmission, ensuring confidentiality, authentication, and integrity. This
is essential for protecting sensitive data and is now a standard for all
modern web applications.
---
Question 4:
A developer wants to reduce the initial load time of a web application by
deferring the loading of non‑essential JavaScript code until it is needed.
Which technique best accomplishes this?
A. Code splitting with lazy loading
B. Preloading all scripts on page load
C. Server‑side rendering only
D. Using synchronous HTTP requests
©2025