Cross-Browser Compatibility & Testing MCQs

16 MCQs  — Multiple Browsers MCQs  (Page 1 of 2)

Practice Cross-Browser Compatibility & Testing MCQs with correct answers and explanations. These questions are from the Multiple Browsers MCQs section.

What is a polyfill?
An image compression tool
A CSS reset
Code that implements a missing modern feature in older browsers
A browser extension
Which approach is recommended for handling browser differences?
Writing separate sites for each browser
Blocking unsupported browsers
Feature detection (checking whether an API exists) rather than User-Agent sniffing
Parsing the User-Agent string
What were vendor prefixes such as -webkit-, -moz-, and -ms- used for in CSS?
Loading fonts
Experimental or non-standard implementations of CSS features in specific engines
Marking comments
Defining media queries
What is a headless browser?
A browser without a homepage
A browser without JavaScript
A text-only browser such as Lynx
A browser that runs without a visible user interface, used for automated testing and scraping
What does a web page that works in Chrome but breaks in Safari most likely indicate?
The page needs Flash
The server is down
The DNS is wrong
The page uses a feature or behavior that WebKit does not support, or supports differently
What is WebAssembly (Wasm)?
A Chrome-only plugin
A new version of HTML
A CSS framework
A binary instruction format that runs at near-native speed in all major browsers
Why must service workers run on HTTPS (except on localhost)?
Because HTTP lacks cookies
Because they are written in Java
To speed up caching
They can intercept and modify network requests, so they need a secure origin to prevent tampering