1.

How many arguments does the digitalRead() function have?(a) 1(b) 2(c) 3(d) 4This question was posed to me during an interview.This interesting question is from Digital Input Output in section Arduino Programming of Arduino

Answer»

Correct CHOICE is (a) 1

Easy explanation: The digitalRead() function is used to take digital signal inputs to the ARDUINO. It requires 1 argument; the pin number which would indicate which pin is to be used for that PARTICULAR operation. This will make the Arduino to START reading voltage fluctuations of the order of 0V and 5V.



Discussion

No Comment Found

Related InterviewSolutions