1.

What is the default time limit that is set automatically if no value is passed as the limit to the setTimeout() function?(a) 100 milliseconds(b) 1500 milliseconds(c) 1000 milliseconds(d) 2432 millisecondsThis question was addressed to me at a job interview.My question is from Serial and Stream Communications topic in chapter Arduino Programming of Arduino

Answer»

Right answer is (c) 1000 milliseconds

The best I can explain: The default TIME limit is set to 1000 milliseconds before the setTimeout() will wipe the data from the BUFFER if no time limit is PROVIDED externally. This FUNCTION has no return data type, and can be invoked from a host of FUNCTIONS.



Discussion

No Comment Found

Related InterviewSolutions