MCQ Answer

Which command is used in Arduino to set 9th pin as output?

Which command is used in Arduino to set 9th pin as output?

Arduino में 9वें पिन को आउटपुट के रूप में सेट करने के लिए किस कमांड का उपयोग किया जाता है?
Topic : Building IoT Applications

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
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad