Logo
search
menuicon
Arduino code programming

Arduino code programming

ฐิติ Rw
바다 보물찾기
quiz thumbnail
เล่นอิสระ

Arduino code programming

ฐิติ Rw

1

ควิซที่สร้างด้วยแผนที่พรีเมียม

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
# 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

เข้าถึงไม่ได้เนื่องจากแพลนหมดอายุ คัดลอกและแก้ไขในแผนที่อื่น