121. Which HTML5 feature allows speech recognition?
- a) Web Speech API
- b) SpeechSynthesis
- c) Both a and b
- d) VoiceXML
Answer: C - The Web Speech API handles both recognition (SpeechRecognition) and synthesis (SpeechSynthesis).
122. Which HTML5 element is used for scalar measurements?
- a) <progress>
- b) <meter>
- c) <range>
- d) <scale>
Answer: B - The <meter> element represents a scalar measurement within a known range.
123. Which HTML5 feature allows file system access?
- a) File API
- b) File System API
- c) Both a and b
- d) LocalStorage
Answer: C - The File API handles file reads, while the File System API (non-standard) allows deeper access.
124. Which HTML5 feature allows payment processing?
- a) Payment Request API
- b) Web Payments
- c) Stripe.js
- d) PayPal SDK
Answer: A - The Payment Request API standardizes browser-based payments.
125. Which HTML5 feature allows screen wake locks?
- a) Wake Lock API
- b) navigator.wakeLock
- c) Screen.keepAwake()
- d) Power Management API
Answer: A - The Wake Lock API prevents devices from sleeping.
126. Which HTML5 feature allows sharing content to other apps?
- a) Web Share API
- b) navigator.share()
- c) Both a and b
- d) Social Media SDKs
Answer: C - The Web Share API’s primary method is navigator.share().
127. Which HTML5 feature allows detecting idle users?
- a) Idle Detection API
- b) UserIdleTimer
- c) document.idle
- d) Activity Monitor
Answer: A - The Idle Detection API monitors user activity state.
128. Which HTML5 feature allows font customization?
- a) @font-face
- b) Web Fonts
- c) Font Loading API
- d) All of the above
Answer: D - All are methods for custom font handling in HTML5.
129. Which HTML5 feature allows performance monitoring?
- a) Performance API
- b) Navigation Timing API
- c) User Timing API
- d) All of the above
Answer: D - These APIs provide granular performance metrics.
130. Which HTML5 feature allows gamepad input?
- a) Gamepad API
- b) navigator.getGamepads()
- c) Both a and b
- d) Input Device API
Answer: C - The Gamepad API is accessed via navigator.getGamepads().
131. Which HTML5 feature allows detecting network status?
- a) navigator.onLine
- b) Network Information API
- c) Both a and b
- d) Ping API
Answer: C - navigator.onLine checks connectivity, while the Network API provides details.
132. Which HTML5 feature allows detecting light levels?
- a) Ambient Light Sensor API
- b) DeviceLightEvent
- c) Both a and b
- d) Luminosity API
Answer: C - The Ambient Light API (modern) and DeviceLightEvent (legacy) detect light.
133. Which HTML5 feature allows detecting device proximity?
- a) Proximity API
- b) DeviceProximityEvent
- c) Both a and b
- d) NearField API
Answer: B - DeviceProximityEvent (deprecated) was used for proximity detection.
134. Which HTML5 feature allows pointer lock (mouse capture)?
- a) Pointer Lock API
- b) requestPointerLock()
- c) Both a and b
- d) Mouse Capture API
Answer: C - The Pointer Lock API’s method is requestPointerLock().
135. Which HTML5 feature allows credential management?
- a) Credential Management API
- b) navigator.credentials
- c) Both a and b
- d) Password Manager API
Answer: C - The Credential Management API is accessed via navigator.credentials.
136. Which HTML5 feature allows media capture?
- a) getUserMedia()
- b) MediaStream API
- c) Both a and b
- d) WebCam API
Answer: C - getUserMedia() is part of the MediaStream API.
137. Which HTML5 feature allows MIDI device access?
- a) Web MIDI API
- b) navigator.requestMIDIAccess()
- c) Both a and b
- d) AudioWorklet
Answer: C - The Web MIDI API’s entry point is requestMIDIAccess().
138. Which HTML5 feature allows Bluetooth device access?
- a) Web Bluetooth API
- b) navigator.bluetooth
- c) Both a and b
- d) Device API
Answer: C - The Web Bluetooth API is accessed via navigator.bluetooth.
139. Which HTML5 feature allows USB device access?
- a) WebUSB API
- b) navigator.usb
- c) Both a and b
- d) Serial API
Answer: C - The WebUSB API is accessed via navigator.usb.
140. Which HTML5 feature allows serial port access?
- a) Web Serial API
- b) navigator.serial
- c) Both a and b
- d) Ports API
Answer: C - The Web Serial API is accessed via navigator.serial.