Storybook Interview Questions Hindi mein

Storybook: Component-Driven UI Development कोर्स के 9 सवाल, हर सवाल के सही जवाब और explanation के साथ। जवाब देखने से पहले ख़ुद सोचें।

मॉड्यूल 11: Review और Summary

1. Storybook का primary purpose क्या है?

  1. Unit testing को replace करना
  2. Project dependencies को manage करना
  3. UI components को isolation में develop और test करना
  4. Production के लिए JavaScript bundle करना
जवाब देखें

जवाब: UI components को isolation में develop और test करना

Storybook component development और testing के लिए एक isolated environment प्रदान करता है, अन्य testing approaches को replace करने की बजाय complement करता है।

पाठ: Key Concepts Review

2. Storybook में story क्या दर्शाती है?

  1. A database table
  2. A build pipeline
  3. One state of a component
  4. A route in the app
जवाब देखें

जवाब: One state of a component

हर story component को किसी विशेष state में render करती है।

पाठ: Key Concepts Review

3. कौन-सा addon UI में props live बदलने देता है?

  1. Docs
  2. Viewport
  3. Backgrounds
  4. Controls
जवाब देखें

जवाब: Controls

Controls args को real time में बदलता है।

पाठ: Key Concepts Review

4. Decorator किसलिए उपयोग होता है?

  1. Wrapping stories with providers, themes or layout
  2. Compiling TypeScript
  3. Deploying Storybook
  4. Generating screenshots
जवाब देखें

जवाब: Wrapping stories with providers, themes or layout

Decorators हर story के चारों ओर साझा context जोड़ते हैं।

पाठ: Key Concepts Review

5. `play` function कहाँ चलता है?

  1. Before the build
  2. After the story renders, simulating user actions
  3. Only in production
  4. Inside the Figma plugin
जवाब देखें

जवाब: After the story renders, simulating user actions

Play functions render हुई story पर interactions और assertions चलाते हैं।

पाठ: Key Concepts Review

6. बिल्ड्स के बीच अनपेक्षित visual बदलाव कौन-सा tool पकड़ता है?

  1. ESLint
  2. Prettier
  3. Chromatic or Percy
  4. npm audit
जवाब देखें

जवाब: Chromatic or Percy

Visual testing हर story के screenshots की तुलना करता है।

पाठ: Key Concepts Review

7. a11y addon क्या जाँचता है?

  1. Bundle size
  2. Network speed
  3. Git history
  4. Accessibility violations such as missing labels and low contrast
जवाब देखें

जवाब: Accessibility violations such as missing labels and low contrast

यह हर story पर axe checks चलाता है।

पाठ: Key Concepts Review

8. Storybook में समृद्ध documentation pages कैसे लिखें?

  1. MDX with DocsPage
  2. Plain JSON
  3. SQL scripts
  4. Shell aliases
जवाब देखें

जवाब: MDX with DocsPage

MDX Markdown को live component examples के साथ मिलाता है।

पाठ: Key Concepts Review

9. CI में Storybook tests क्यों चलाएँ?

  1. To replace code review
  2. To catch component regressions on every commit
  3. To minify CSS
  4. To rename stories
जवाब देखें

जवाब: To catch component regressions on every commit

Automated interaction, a11y और visual tests UI गुणवत्ता की रक्षा करते हैं।

पाठ: Key Concepts Review

← कोर्स पर वापस जाएँ