Guide-linked quiz · Medium Level

How to Turn a Design Mockup into Code with AI Quiz

Tests design-to-code prompts, responsive comparison, component structure, accessibility checks, and the limits of screenshot-based generation.

Question 1 of 8

What information does a screenshot usually fail to specify by itself?

Preview every question8 questions

Answers and explanations appear as you take the quiz.

  1. What information does a screenshot usually fail to specify by itself?
    • Hidden interaction states and responsive rules
    • Pixel colors
    • Visible element positions
    • The page's current viewport
  2. Why begin with one component instead of generating a whole app?
    • AI can only produce single components
    • It makes the result easier to inspect and correct
    • A full app cannot contain CSS
    • Components do not need testing
  3. Which check helps reveal a layout that only works at the mockup's desktop width?
    • Change the editor theme
    • Rename every CSS class
    • Inspect narrower and wider viewport sizes
    • Remove real text
  4. A generated button looks correct but has no accessible name. What should be fixed?
    • Its border radius only
    • The screenshot file format
    • The page title color
    • Its semantic label and accessible behavior
  5. When should existing design tokens be supplied to the model?
    • When the project expects generated styles to match its established colors and spacing
    • Only after the code is deployed
    • Never, because tokens are images
    • Only when the page has no components
  6. What does a visual regression comparison establish?
    • That every interaction works
    • That the rendered images match at the tested conditions
    • That the page meets all accessibility criteria
    • That the component tree is maintainable
  7. Why use realistic content during layout review?
    • Real text guarantees WCAG conformance
    • Placeholder text disables responsive CSS
    • Long labels and actual text can change wrapping and spacing
    • It eliminates the need for keyboard testing
  8. Which request is most likely to preserve already-correct code after finding one mismatch?
    • Regenerate the entire application
    • Delete the component library
    • Replace all tokens with inline styles
    • Ask for a targeted adjustment and explain the mismatch

Keep testing yourself

More quizzes picked for your level.

View all quizzes