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 (21)
✍️ 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. 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.
3. 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.
4. Which JavaScript method is used to remove the last element from an array and return it?
The pop() method removes and returns the last element of an array, mutating the original array and decreasing its length by one.
5. Recent data loss occurred on a web server that was set up to use TLS with AES-GCM-256, SHA-384, and ECDSA. Select the factor that is MOST likely to be the cause.
Even when strong cryptographic primitives like AES-GCM-256, SHA-384, and ECDSA are specified, data loss or security breaches can still occur due to poor implementation. This could involve vulnerabilities in the application logic, improper key management, misconfigurations, or human error in setting up and maintaining the system. A robust security posture requires not only strong algorithms but also flawless execution and operational practices.
6. Which JavaScript method is used to add an element to the end of an array?
The push() method adds one or more elements to the end of an array and returns the new length of the array.