Cross-Browser Confidence: A Beginner-Friendly Quiz Quiz

  1. Understanding the Core Concept

    What does cross-browser compatibility mean when developing a website or web app?

    1. The site works and looks consistently across different browsers and their versions.
    2. The site only supports the newest browser released this year.
    3. The site runs on different operating systems only, which is cross-platform compatibility.
    4. The site is compatible with any screen size regardless of browser, which is only responsive design.
    5. The site is optimized for a single browser to maximize speed.
  2. Importance for Users

    Why is cross-browser compatibility important for users visiting the same page with different browsers?

    1. It ensures a similar experience and access to features for all users regardless of the browser.
    2. It guarantees zero bugs in the codebase forever.
    3. It automatically boosts search engine ranking without content changes.
    4. It reduces server power consumption significantly.
    5. It lets the site function offline without any additional work.
  3. Common Issues Example

    Which scenario is a common cross-browser issue you might encounter with CSS layout?

    1. A flexbox layout aligns correctly in one browser but wraps incorrectly in another due to default differences.
    2. A database query returns fewer rows on one server than another.
    3. A domain name fails to resolve after an update.
    4. A printer outputs pages in grayscale instead of color.
    5. A mobile battery drains faster during video playback.
  4. Standards and Best Practice

    Which practice most helps achieve cross-browser compatibility in markup and styles?

    1. Writing semantic, standards-compliant HTML and CSS and avoiding proprietary-only features.
    2. Replacing all text with images to look identical everywhere.
    3. Targeting a single browser with exclusive, nonstandard CSS.
    4. Turning off CSS entirely to prevent layout issues.
    5. Relying on luck that browsers interpret code the same way.
  5. Feature Detection vs Sniffing

    When deciding whether to use a modern web feature, what approach is recommended for cross-browser compatibility?

    1. Use feature detection in code (for example, check if a method exists) and provide fallbacks.
    2. Use user-agent string sniffing and assume capabilities based on its text.
    3. Block all older browsers from accessing the site.
    4. Randomly enable features to see if users complain.
    5. Rename the feature to a different variable to bypass incompatibility.
  6. Polyfills and Transpilers

    What is the purpose of using a polyfill or transpiler in the context of cross-browser compatibility?

    1. To provide missing features or convert newer syntax so older browsers can run the code.
    2. To compress images for faster downloads only.
    3. To enforce server-side authentication rules.
    4. To generate decorative animations that run only on new devices.
    5. To increase screen brightness on compatible monitors.
  7. Vendor Prefixes

    Why might a developer use vendor-prefixed CSS properties (for example, a property starting with -vendor-) during a transition period?

    1. To enable experimental or partially supported features in specific browsers while keeping a standard fallback.
    2. To hide CSS from all browsers to prevent rendering.
    3. To encrypt styles so other developers cannot read them.
    4. To make JavaScript execute faster by moving it into CSS.
    5. To force all browsers to use identical rendering engines.
  8. Distinguishing Related Concepts

    Which statement correctly distinguishes cross-browser compatibility from responsive design?

    1. Cross-browser compatibility is about different browsers handling the same code consistently, while responsive design adapts layouts to different screen sizes.
    2. Cross-browser compatibility and responsive design are the same concept with different names.
    3. Responsive design ensures scripts run in old browsers, whereas cross-browser compatibility changes screen sizes.
    4. Cross-browser compatibility only concerns server-side languages, while responsive design concerns client-side CSS.
    5. Responsive design is about color schemes, whereas cross-browser compatibility is about fonts only.
  9. Testing Approaches

    Which method is a sensible way to test cross-browser compatibility before launch?

    1. Test pages on a range of real browsers and versions, using emulators or virtual machines when necessary.
    2. Assume that if it works on your development browser, it works everywhere.
    3. Ask users to report issues after launch instead of testing.
    4. Only test the home page and ignore inner pages.
    5. Test only in private browsing mode to simulate all browsers.
  10. Enhancement Strategies

    Which strategy describes building a basic, accessible experience first and adding advanced features if the browser supports them?

    1. Progressive enhancement
    2. Graceful degradation
    3. Aggressive optimization
    4. Progressive enchantment
    5. Gross-browser compatibility