Web Programming Study Guide 2026
Everything you need to pass the Web Programming exam in one place: the exam format, every topic to study, real practice questions with explanations, flashcards, and full-length practice tests. Free, no sign-up needed.
๐ Web Programming Exam Format at a Glance
๐ Web Programming Topics to Study (33)
โ๏ธ Sample Web Programming Questions & Answers
1. What is the difference between `aria-live="polite"` and `aria-live="assertive"`?
`assertive` interrupts the current screen reader speech immediately, while `polite` waits until the user is idle before announcing the update.
2. Which SQL injection prevention technique uses parameterized queries in server-side code?
Prepared statements separate SQL logic from data so user input is never interpreted as SQL commands.
3. Which attack involves a malicious website causing an authenticated user's browser to perform unintended actions on another site?
Cross-Site Request Forgery (CSRF) tricks an authenticated user's browser into sending requests to a site where they're logged in, exploiting cookie-based auth.
4. What is the main advantage of using a Content Delivery Network (CDN) for static web assets?
CDNs cache and serve static content from globally distributed edge nodes, reducing round-trip time for users far from the origin server.
5. In web development, what is a Single Page Application (SPA)?
A Single Page Application loads a single HTML document and dynamically rewrites the page content using JavaScript, avoiding full page reloads for navigation.
6. A ______ can be added to the end of a URL as a technique to keep data safe after a visitor has seen the page.
A query string is a part of a URL that allows data to be passed from one web page to another, typically after a question mark (?). It consists of key-value pairs and is commonly used to maintain state, filter content, or track user information across stateless HTTP requests. While not a security mechanism, it helps persist specific data related to a visitor's interaction with a page.