Kuiz berkaitan panduan · Sederhana Tahap

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.

soalan 1 daripada 8

Apakah maklumat yang biasanya gagal dinyatakan oleh tangkapan skrin dengan sendirinya?

Pratonton setiap soalan8 soalan

Jawapan dan penjelasan muncul semasa anda mengambil kuiz.

  1. Apakah maklumat yang biasanya gagal dinyatakan oleh tangkapan skrin dengan sendirinya?
    • Hidden interaction states and responsive rules
    • Pixel colors
    • Visible element positions
    • The page's current viewport
  2. Mengapa bermula dengan satu komponen dan bukannya menjana keseluruhan aplikasi?
    • 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. Pemeriksaan yang manakah membantu mendedahkan susun atur yang hanya berfungsi pada lebar desktop mockup tersebut?
    • Change the editor theme
    • Rename every CSS class
    • Inspect narrower and wider viewport sizes
    • Remove real text
  4. Butang yang dijana kelihatan betul tetapi tiada nama boleh akses. Apakah yang harus dibetulkan?
    • Its border radius only
    • The screenshot file format
    • The page title color
    • Its semantic label and accessible behavior
  5. Bilakah token reka bentuk sedia ada harus dibekalkan kepada 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