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
- Which CSS property makes an element invisible but still occupies space in the layout? → visibility: hidden
- Which keyboard key is the standard for activating a button or link that has keyboard focus? → Enter
- What syntax should be used to create a temporary cookie with the value "blue"? → Setcookie("color","blue");
- 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
- What is rate limiting in the context of web APIs? → Restricting the number of requests a client can make in a given time period
- What does a 500 HTTP status code indicate? → Internal Server Error
- What does REST stand for in web development? → Representational State Transfer
- Which HTTP method is used to retrieve data from a server without modifying it? → GET
- Which HTML attribute is used to provide a text alternative for an image for screen readers? → alt
- What occurs when a user chooses a new option from a select list? → The change event
- Which of the following commands, given a Date object named due date, sets the month to February? → Due_date.setMonth(1);
- What does the === operator check in JavaScript? → Both value and type equality
- 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
- Which ARIA role should be applied to a navigation landmark element that doesn't use the native tag? → role="navigation"
- Which HTML tag is used to create a hyperlink? →
- 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
- What is the purpose of the HTML tag? → Specifies the character encoding for the document
- Which of the following does not qualify as a PHP state management tool? → Functions
- Which of the following would satisfy the multifactor authentication requirements? → Fingerprint and Password
- What is the main difference between Vue.js and React? → Vue is an opinionated full framework; React is a UI library
- Which CSS display value makes an element start on a new line and take up the full width available? → block
- In React, what is the useState hook used for? → Adding and managing local state in functional components
- In web development, what is a Single Page Application (SPA)? → A web app that loads once and dynamically updates content without full page reloads
- Which JavaScript method is used to remove the last element from an array and return it? → pop()
- What is the difference between `aria-live="polite"` and `aria-live="assertive"`? → assertive interrupts the user immediately; polite waits until the user is idle
- What is the difference between authentication and authorization in web APIs? → Authentication verifies identity; authorization determines permissions
- Which array method creates a new array with elements that pass a test function? → filter()
- Which attribute should be used to associate a form input with its label when they are not adjacent in the DOM? → aria-labelledby
- Which WCAG success criterion requires that all functionality be available from the keyboard? → 2.1.1 Keyboard
- Which CSS unit is relative to the font-size of the root element? → rem
Turn these facts into recall: