NIELIT O Level Exam

Which command is the 9th pin on Arduino set as output?

Which command is the 9th pin on Arduino set as output?

कौन सा कमांड Arduino पर 9वे पिन को आउटपुट के रूप में सेट करेगा

A. int sensorPin=9

B. int sensorValue=9

C. pinMode(9, OUTPUT);

D. digitalWrite(9, HIGH);




Correct Answer is :

C. pinMode(9, OUTPUT);



Explanation
pinMode() function is used to set the pin and mode. first parameter is Pin number and second is mode i.e. INPUT/OUTPUT
CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad