in Education by
Which function among the following lets to register a function to be invoked repeatedly after a certain time? (a) setTimeout() (b) setTotaltime() (c) setInterval() (d) settime() The question was asked in class test. This intriguing question comes from The Document Object Model in chapter Document Object Model and Event Handling in Javascript of JavaScript Select the correct answer from above options JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
The correct choice is (c) setInterval() For explanation I would say: setTimeout() and setInterval() allow you to register a function to be invoked once or repeatedly after a specified amount of time has elapsed. Both these function are used to do time manipulation in javascript.

Related questions

0 votes
0 votes
    Which will be invoked to create a new worker? (a) Function (b) Destructor (c) Constructor (d) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
0 votes
    How method can be invoked on unknown object? (a) obj.getClass().getDeclaredMethod() (b) obj.getClass( ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
0 votes
0 votes
    Which is the method invoked to begin a path? (a) begin() (b) path() (c) createPath() (d ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 22, 2021 in Education by JackTerrance
0 votes
    Which of these methods are used to register a keyboard event listener? (a) KeyListener() (b) addKistener( ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which of these methods are used to register a mouse motion listener? (a) addMouse() (b) addMouseListener( ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which of this method can be used to make the main thread to be executed last among all the threads ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
...