โ† All Web Development Flashcard Decks

Web Development Flashcards

7 cards from real Web Development practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Web Development flashcards as text
  1. Which HTTP status code indicates that a resource has been permanently moved to a new URL?

    Answer: 301 Moved Permanently

    301 Moved Permanently tells clients and search engines to update their links to the new URL.

  2. In CSS Flexbox, which property controls the alignment of items along the cross axis?

    Answer: align-items

    align-items controls how flex children are aligned along the cross axis (perpendicular to the main axis).

  3. What does the 'defer' attribute do when added to a tag?

    Answer: Downloads the script in parallel and executes after HTML parsing completes

    The defer attribute downloads the script without blocking HTML parsing and runs it after the document is fully parsed.

  4. Which JavaScript method creates a shallow copy of an array?

    Answer: All of the above

    Array.from(), slice(), and concat([]) all produce a new shallow copy of the original array.

  5. In REST API design, which HTTP method is idempotent but NOT safe?

    Answer: DELETE

    DELETE is idempotent (same result if called multiple times) but not safe because it modifies server state.

  6. What is the purpose of a Content Security Policy (CSP) header?

    Answer: Restrict sources from which content can be loaded to prevent XSS

    CSP headers tell browsers which content sources are trusted, reducing the risk of cross-site scripting attacks.

  7. Which CSS unit is relative to the font-size of the root element?

    Answer: rem

    rem (root em) is always relative to the font-size set on the element, unlike em which is relative to the parent.

How this page was made: written with AI tools. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Not reviewed by a subject-matter expert. Editorial policy