1.

Can the loop() function be used to replace the functionality of the setup() function?(a) Yes, it can(b) No, it cannot(c) Yes, it can, but only for certain Arduino Boards(d) Yes, it can, but only for a limited time frameThe question was asked in a job interview.Query is from The loop() Function in division Arduino Programming of Arduino

Answer»

Right ANSWER is (a) Yes, it can

Easy explanation: Yes, the loop() function can replace the setup() function completely, theoretically, since both the loop() function and the setup() functions are custom predefined functions in the Arduino Environment. However, this would RESULT in more WORK from the developer’s END since he/she would have to find a way to make configuration code run only once.



Discussion

No Comment Found

Related InterviewSolutions