Skip to content

HTML5 APIs Quiz (50 Questions)

Answer all questions, track your progress live, and see your final HTML5 APIs quiz score at the end.

Progress 0 / 50 answered
Q1. What are HTML5 APIs mainly used for?
Q2. Which API is used to make HTTP requests?
Q3. Which method is commonly used to make a Fetch request?
Q4. Which method converts a Fetch response to JSON?
Q5. Which browser storage keeps data after the browser is closed?
Q6. Which browser storage clears when the tab is closed?
Q7. Which API is best for large structured offline data?
Q8. Which IndexedDB method opens or creates a database?
Q9. Where are IndexedDB object stores usually created?
Q10. Which API stores HTTP responses for offline use?
Q11. Which API enables offline support and request interception?
Q12. Which Service Worker event is used to cache app shell files?
Q13. Which Service Worker event intercepts network requests?
Q14. Which API requests the user location?
Q15. Which method gets the user current location once?
Q16. Which method continuously tracks location changes?
Q17. Which API accesses camera and microphone?
Q18. Which method requests camera or microphone access?
Q19. Which API records audio or video streams?
Q20. Which MediaRecorder event provides recorded Blob chunks?
Q21. Which API is used to draw graphics with JavaScript?
Q22. Which Canvas method gets the 2D drawing context?
Q23. Which API reads files selected by the user?
Q24. Which API represents file-like binary data?
Q25. Which method creates a temporary URL for a Blob?
Q26. Which method should release an Object URL?
Q27. Which API copies and reads clipboard data?
Q28. Which method writes text to clipboard?
Q29. Which API shows system-level browser notifications?
Q30. Which method asks the user for notification permission?
Q31. Which API updates browser history without page reload?
Q32. Which History API method adds a new history entry?
Q33. Which event handles browser back and forward navigation?
Q34. Which API sends messages between windows, iframes, and popups?
Q35. What should you always validate when receiving postMessage data?
Q36. Which API communicates between same-origin browser tabs?
Q37. Which API runs JavaScript in a background thread for one page?
Q38. Which worker can be shared by multiple same-origin tabs?
Q39. Can Web Workers directly access the DOM?
Q40. Which API detects when an element enters the viewport?
Q41. Which API detects DOM changes?
Q42. Which API detects element size changes?
Q43. Which API provides high-resolution performance timing?
Q44. Which method is best for measuring precise execution time?
Q45. Which method is preferred for smooth JavaScript animations?
Q46. Which API allows server-to-browser real-time updates over HTTP?
Q47. Which object is used by Server-Sent Events on the client?
Q48. Which API provides full two-way real-time communication?
Q49. Which API checks browser permission status?
Q50. Which security practice is important for powerful HTML5 APIs?