Responsive and Mobile-First Web Design Interview Questions Hindi mein

Responsive और Mobile-First Web Design कोर्स के 18 सवाल, हर सवाल के सही जवाब और explanation के साथ। जवाब देखने से पहले ख़ुद सोचें।

मॉड्यूल 1: शुरुआत करें

1. कौन सा responsive design का pillar है?

  1. Fixed widths केवल
  2. Flexible grid
  3. Desktop-first approach
  4. Pixel-perfect desktop mockups
जवाब देखें

जवाब: Flexible grid

%, em, rem का उपयोग करके flexible grid एक core pillar है।

पाठ: उत्तरदायी डिज़ाइन क्या है?

मॉड्यूल 2: आधार

2. @media (min-width: 768px) का क्या मतलब है?

  1. जब स्क्रीन 768px या narrower हो तो लागू करें
  2. केवल 768px पर लागू करें
  3. जब स्क्रीन 768px या चौड़ी हो तो लागू करें
  4. केवल तब apply हो जब screen ठीक 768px हो
जवाब देखें

जवाब: जब स्क्रीन 768px या चौड़ी हो तो लागू करें

`min-width: 768px` का अर्थ है "768px और ऊपर" — एक lower bound।

पाठ: सीएसएस media queries

3. Breakpoints devices या content के आधार पर होने चाहिए?

  1. Device names
  2. Popular devices केवल
  3. हमेशा नवीनतम iPhone की width
  4. Content
जवाब देखें

जवाब: Content

Content-driven breakpoints किसी भी device के लिए काम करते हैं।

पाठ: Breakpoints रणनीति

मॉड्यूल 3: मुख्य तकनीकें

4. Mobile पर hover-only tooltips में क्या गलत है?

  1. वे touch screens पर invisible हैं
  2. वे page को slow करते हैं
  3. वे बहुत बड़े हैं
  4. वे हमेशा बहुत बड़े होते हैं
जवाब देखें

जवाब: वे touch screens पर invisible हैं

Touch devices का कोई hover state नहीं है।

पाठ: Touch interactions

मॉड्यूल 4: Layout Systems

5. CSS Grid में minmax(280px, 1fr) क्या करता है?

  1. Columns को बिल्कुल 280px बनाता है
  2. Columns को कम से कम 280px सुनिश्चित करता है, space भरने के लिए grow करता है
  3. Columns को 280px तक limit करता है
  4. 280px की fixed height सेट करता है
जवाब देखें

जवाब: Columns को कम से कम 280px सुनिश्चित करता है, space भरने के लिए grow करता है

minmax() flexible sizing के लिए minimum और maximum दोनों values set करता है।

पाठ: CSS Grid responsive

6. Container queries का media queries पर क्या फायदा है?

  1. वे faster हैं
  2. वे सभी browsers पर काम करते हैं
  3. Components अपने container के अनुसार adapt होते हैं
  4. वे CSS की जरूरत खत्म कर देते हैं
जवाब देखें

जवाब: Components अपने container के अनुसार adapt होते हैं

Container queries reusable components बनाते हैं जो कहीं भी adapt होते हैं।

पाठ: Container queries

मॉड्यूल 5: Design Patterns

7. कम animation चाहने वाले user को कौन-सा media feature पहचानता है?

  1. prefers-reduced-motion
  2. prefers-color-scheme
  3. orientation
  4. hover
जवाब देखें

जवाब: prefers-reduced-motion

prefers-reduced-motion: reduce OS की reduce-motion setting को दर्शाता है।

पाठ: User preference media queries

मॉड्यूल 7: Best Practices

8. Minimum touch target size क्या है?

  1. 20x20px
  2. 32x32px
  3. 10x10px
  4. 44x44px
जवाब देखें

जवाब: 44x44px

44x44px (Apple) या 48x48px (Android) recommended है।

पाठ: Mobile के लिए accessibility

मॉड्यूल 8: Tools और Resources

9. Mobile पर page को device width पर render करने वाला meta tag कौन-सा है?

  1. charset
  2. robots
  3. viewport
  4. description
जवाब देखें

जवाब: viewport

Viewport meta tag mobile browsers को desktop width मानने से रोकता है।

पाठ: Cheatsheet और Interview Q&A

10. Mobile-first CSS में आप मुख्य रूप से कौन-सा query उपयोग करते हैं?

  1. max-width
  2. orientation only
  3. print
  4. min-width
जवाब देखें

जवाब: min-width

Base styles mobile को target करते हैं, और min-width बड़े screens के लिए layers जोड़ता है।

पाठ: Cheatsheet और Interview Q&A

11. clamp(1rem, 2.5vw, 2rem) क्या करता है?

  1. Scales smoothly between a minimum and maximum
  2. Fixes the size at 2.5vw
  3. Hides the element
  4. Sets a media query
जवाब देखें

जवाब: Scales smoothly between a minimum and maximum

Value पसंदीदा size का अनुसरण करता है पर min और max से बाहर नहीं जाता।

पाठ: Cheatsheet और Interview Q&A

12. कौन-सा Grid pattern बिना media queries के responsive columns बनाता है?

  1. grid-template-columns: 300px 300px
  2. repeat(auto-fit, minmax(280px, 1fr))
  3. float: left
  4. display: inline
जवाब देखें

जवाब: repeat(auto-fit, minmax(280px, 1fr))

minmax के साथ auto-fit जगह के अनुसार columns wrap करता है।

पाठ: Cheatsheet और Interview Q&A

13. Container queries components को किसके आधार पर style करते हैं?

  1. The viewport only
  2. The user agent
  3. Their container's width
  4. The page title
जवाब देखें

जवाब: Their container's width

वही component जहाँ रखा जाए वहाँ adapt होता है।

पाठ: Cheatsheet और Interview Q&A

14. कौन-सा attribute browsers को screen के अनुसार image size चुनने देता है?

  1. alt
  2. rel
  3. lang
  4. srcset
जवाब देखें

जवाब: srcset

sizes के साथ srcset browser को सही resolution download करने देता है।

पाठ: Cheatsheet और Interview Q&A

15. न्यूनतम touch target size के लिए क्या सुझाया जाता है?

  1. 44x44px
  2. 16x16px
  3. 10x10px
  4. 24x12px
जवाब देखें

जवाब: 44x44px

बड़े targets touch screens पर mis-taps रोकते हैं।

पाठ: Cheatsheet और Interview Q&A

16. कौन-सा Core Web Vital अनपेक्षित layout movement मापता है?

  1. LCP
  2. CLS
  3. INP
  4. TTFB
जवाब देखें

जवाब: CLS

Images और ads width, height या aspect-ratio से जगह आरक्षित करें तो CLS घटता है।

पाठ: Cheatsheet और Interview Q&A

मॉड्यूल 10: Revision और Summary

17. इनमें से कौन responsive design का pillar नहीं है?

  1. Percentage widths के साथ flexible grid
  2. Breakpoints के लिए media queries
  3. Fixed-width containers
  4. Flexible, scalable media
जवाब देखें

जवाब: Fixed-width containers

Fixed-width containers layouts को एक आकार पर lock करते हैं — responsive design के opposite। इसके बजाय flexible widths का उपयोग करें।

पाठ: Responsive design recap

18. Mobile-first desktop-first से बेहतर क्यों है?

  1. Simpler CSS, prioritization, better performance
  2. यह सिर्फ एक trend है
  3. Mobile users को features की जरूरत नहीं
  4. Desktop browsers इसे चला नहीं सकते
जवाब देखें

जवाब: Simpler CSS, prioritization, better performance

Mobile-first CSS cleaner है, और आप complexity को केवल जब जरूरत हो तब add करते हैं।

पाठ: Responsive design recap

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