# 2เลือกประเภทWhich function in Arduino is used to initialize variables or pin modes?start()initialize()setup()begin()
# 3เลือกประเภทWhat function in Arduino runs continuously after setup() is completed?loop()repeat()cycle()continue()
# 4เลือกประเภทWhich Arduino function is used to set the digital pin as output?digitalWrite()pinMode()analogWrite()setPin()
# 5เลือกประเภทWhat does the digitalWrite() function do in Arduino?Reads a pin valueWrites a high or low value to a digital pinWrites an analog valueConfigures pin mode
# 6เลือกประเภทWhich function would you use to read the value from a digital pin in Arduino?analogRead()digitalRead()pinRead()inputRead()
# 7เลือกประเภทWhat is the purpose of the delay() function in Arduino?To stop the program executionTo pause the program for a specified timeTo speed up the programTo initialize variables
# 9เลือกประเภทWhich of the following is a correct way to declare an integer variable in Arduino?int count = 0;integer count = 0;number count = 0;var count = 0;
# 10เลือกประเภทWhat is the correct syntax to set pin 13 as an output in Arduino?setPinMode(13, OUTPUT);pinMode(13, OUTPUT);configurePin(13, OUTPUT);setMode(13, OUTPUT);
# 12เลือกประเภทWhich of the following is used to start serial communication in Arduino?Serial.begin(9600);Serial.start();Serial.connect();Serial.open();
# 13เลือกประเภทWhat is the role of the void keyword in function definitions in Arduino sketches?Indicates no return valueSpecifies the function is privateDenotes a global functionSignals the end of a function
# 14เลือกประเภทIn Arduino, which variable type should be used to store a character?charintfloatdouble
# 15เลือกประเภทWhat is the purpose of the analogRead() function in Arduino?Reads a digital signalReads an analog signalWrites an analog signalWrites a digital signal
# 16เลือกประเภทWhich of these is a valid function prototype in Arduino?void myFunction;myFunction() void;void myFunction();void: myFunction()
# 17เลือกประเภทHow can you reset an Arduino board using code?reset()setup()loop()There is no function for reset
# 18เลือกประเภทWhat is the maximum voltage that can be applied to an Arduino Uno's digital pin?3.3V5V9V12V
# 19เลือกประเภทWhich command is used to turn off a digital pin in Arduino?digitalWrite(pin, LOW);setPinLow(pin);pinMode(pin, LOW);turnOff(pin);
# 20เลือกประเภทWhat is the purpose of the analogWrite() function in Arduino?To read an analog valueTo write a digital valueTo write an analog valueTo initialize an analog pin