1. Home
  2. Computer Science MCQs
  3. HTML
  4. Terminate() method in HTML5 is used for ____________.

Added 20 Jan 2024

Terminate() method in HTML5 is used for ____________.

  1. terminate everything
  2. terminate all method
  3. terminate a web worker Correct answer
  4. terminate program

Correct answer

C. terminate a web worker

13 views

MCQSEXAM

Explanation

The terminate() method is used to terminate a web worker. Calling worker.terminate() from the main script stops the worker immediately, without letting it finish its current task.

A worker can also stop itself from the inside by calling close().

Keep preparing with more Computer Science MCQs on MCQsExam.com.

Doubts & discussion

Not sure why the answer is C? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More HTML MCQs

Practise all HTML MCQs

Similar MCQs