1.

What are the two modes that the pinMode() method sets for a particular pin?(a) DIGITAL and ANALOG(b) INPUT and OUTPUT(c) TX and RX(d) READ and WRITEThis question was addressed to me by my school teacher while I was bunking the class.My doubt stems from Setting Pin Mode in section Arduino Programming of Arduino

Answer»

Right choice is (B) INPUT and OUTPUT

The best I can explain: The pinMode() method determines whether the pin number given in the code is to be USED as an input pin WHEREIN it can read voltage from an external CIRCUIT or for setting a particular voltage at the pin output to be plugged to an external circuit.



Discussion

No Comment Found

Related InterviewSolutions