Logo
แผนที่ที่สร้างขึ้นเฉพาะสำหรับ Pro Plan ควิซ
ควิซถูกล็อกเนื่องจาก แผน PRO หมดอายุ
thubnail
การล่าขุมทรัพย์ใต้ทะเล
เล่นอิสระ
วิทยาศาสตร์

Arduino code programming

ฐิติ Rw
1
0
ปัญหาที่เพิ่มเข้ามา (20/ 20)
อนุญาตให้คำตอบที่ไม่ถูกต้อง
ซ่อนคำตอบ
public quiz

ปัญหา 1

เลือกประเภท

What is the main programming language used for Arduino development?

  • Python
  • Java
  • C/C++
  • Ruby

ปัญหา 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 value
  • Writes a high or low value to a digital pin
  • Writes an analog value
  • Configures 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 execution
  • To pause the program for a specified time
  • To speed up the program
  • To initialize variables

ปัญหา 8

เลือกประเภท

How do you comment a single line in an Arduino sketch?

  • /* comment */
  • // comment
  • # comment
  • <!-- comment -->

ปัญหา 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);

ปัญหา 11

เลือกประเภท

What is the default baud rate for Serial communication in Arduino?

  • 4800
  • 9600
  • 19200
  • 115200

ปัญหา 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 value
  • Specifies the function is private
  • Denotes a global function
  • Signals the end of a function

ปัญหา 14

เลือกประเภท

In Arduino, which variable type should be used to store a character?

  • char
  • int
  • float
  • double

ปัญหา 15

เลือกประเภท

What is the purpose of the analogRead() function in Arduino?

  • Reads a digital signal
  • Reads an analog signal
  • Writes an analog signal
  • Writes 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.3V
  • 5V
  • 9V
  • 12V

ปัญหา 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 value
  • To write a digital value
  • To write an analog value
  • To initialize an analog pin
การแชร์ Google Classroom