Skip to main content

Fundamentals of Front End Development MCQs with Answers

Practice important Fundamentals of Front End Development MCQs with answers and explanations.

Multiple Choice Questions

Q1621: What happens if you modify a file on the server but do not update the manifest file?
  • A: The browser will show the updated file
  • B: The browser will continue to show the cached version
  • C: The file will be deleted from the cache
  • D: The file will be re-downloaded
View Answer
B

Q1622: Which section would you use to list files that require an internet connection and should never be cached?
  • A: CACHE MANIFEST
  • B: NETWORK
  • C: FALLBACK
  • D: UPDATE
View Answer
B

Q1623: Fill in the blank: The fallback page specified in the FALLBACK section will be served in place of ______.
  • A: cached files
  • B: files listed in NETWORK
  • C: files listed in CACHE MANIFEST
  • D: all files
View Answer
B

Q1624: What is a Web Worker used for in HTML5?
  • A: To create responsive web pages
  • B: To run JavaScript in the background
  • C: To handle DOM manipulations
  • D: To store data locally
View Answer
B

Q1625: Which method is used to post a message back to the HTML page from a web worker?
  • A: sendMessage()
  • B: postMessage()
  • C: receiveMessage()
  • D: transferMessage()
View Answer
B

Q1626: What should you check before creating a Web Worker in JavaScript?
  • A: Browser's version
  • B: Support for Worker object
  • C: Network connectivity
  • D: File system access
View Answer
B

Q1627: What is the correct way to create a new Web Worker in JavaScript?
  • A: var w = new Worker("worker.js");
  • B: var w = new Worker("script.js");
  • C: var w = new WebWorker("script.js");
  • D: var w = Worker("worker.js");
View Answer
A

Q1628: Fill in the blank: To check for Web Worker support, you use if(typeof(Worker) !== "______").
  • A: "undefined"
  • B: "null"
  • C: "object"
  • D: "function"
View Answer
A

Q1629: What happens if you do not terminate a web worker after use?
  • A: It will automatically terminate
  • B: It will continue to listen for messages
  • C: It will stop working after one message
  • D: It will cause a memory leak
View Answer
B

Q1630: Fill in the blank: To terminate a web worker and free resources, use the ______ method.
  • A: terminate()
  • B: stop()
  • C: close()
  • D: end()
View Answer
A

Test Your Knowledge

Take a timed quiz on Fundamentals of Front End Development

🚀 Start Quiz Now