Web Programming Cheat Sheet 2026

The 30 highest-yield Web Programming facts, distilled from real exam questions. Print it, save it as a PDF, or study it here — free, no sign-up.

70 questions
75 min time limit
75.00% to pass
  1. Which CSS property makes an element invisible but still occupies space in the layout? visibility: hidden
  2. Which keyboard key is the standard for activating a button or link that has keyboard focus? Enter
  3. What syntax should be used to create a temporary cookie with the value "blue"? Setcookie("color","blue");
  4. Which technique ensures focus is managed correctly when a modal dialog opens? Move focus to the modal and trap it inside until the dialog closes
  5. What is rate limiting in the context of web APIs? Restricting the number of requests a client can make in a given time period
  6. What does a 500 HTTP status code indicate? Internal Server Error
  7. What does REST stand for in web development? Representational State Transfer
  8. Which HTTP method is used to retrieve data from a server without modifying it? GET
  9. Which HTML attribute is used to provide a text alternative for an image for screen readers? alt
  10. What occurs when a user chooses a new option from a select list? The change event
  11. Which of the following commands, given a Date object named due date, sets the month to February? Due_date.setMonth(1);
  12. What does the === operator check in JavaScript? Both value and type equality
  13. Which of the following is the correct use of `role="alert"` in an accessible web application? Apply it to a container that displays important, time-sensitive messages to users
  14. Which ARIA role should be applied to a navigation landmark element that doesn't use the native tag? role="navigation"
  15. Which HTML tag is used to create a hyperlink?
  16. What is the purpose of a 'skip navigation' link in web accessibility? To allow keyboard users to bypass repetitive navigation and jump to main content
  17. What is the purpose of the HTML tag? Specifies the character encoding for the document
  18. Which of the following does not qualify as a PHP state management tool? Functions
  19. Which of the following would satisfy the multifactor authentication requirements? Fingerprint and Password
  20. What is the main difference between Vue.js and React? Vue is an opinionated full framework; React is a UI library
  21. Which CSS display value makes an element start on a new line and take up the full width available? block
  22. In React, what is the useState hook used for? Adding and managing local state in functional components
  23. In web development, what is a Single Page Application (SPA)? A web app that loads once and dynamically updates content without full page reloads
  24. Which JavaScript method is used to remove the last element from an array and return it? pop()
  25. What is the difference between `aria-live="polite"` and `aria-live="assertive"`? assertive interrupts the user immediately; polite waits until the user is idle
  26. What is the difference between authentication and authorization in web APIs? Authentication verifies identity; authorization determines permissions
  27. Which array method creates a new array with elements that pass a test function? filter()
  28. Which attribute should be used to associate a form input with its label when they are not adjacent in the DOM? aria-labelledby
  29. Which WCAG success criterion requires that all functionality be available from the keyboard? 2.1.1 Keyboard
  30. Which CSS unit is relative to the font-size of the root element? rem