
Quiz Kelas 12
Authored by Ani Fitriyah
Computers
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
int sensorValue = analogRead(A0);
if (sensorValue > 500) {
digitalWrite(13, HIGH);
} else {
digitalWrite(13, LOW);
}
Apa tujuan utama dari kode tersebut?
Menyalakan LED jika sensor menghasilkan nilai analog lebih dari 500
Mematikan LED jika nilai analog lebih kecil dari 500
Menentukan nilai analog dari pin A0
Mengukur intensitas cahaya menggunakan LED
Mengatur kecepatan motor berdasarkan nilai sensor
2.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
for (int i = 0; i < 5; i++) {
digitalWrite(8, HIGH);
delay(1000);
digitalWrite(8, LOW);
delay(1000);
}
Berapa kali LED pada pin 8 akan berkedip?
2 Kali
3 Kali
4 Kali
5 Kali
6 Kali
3.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
Mengapa Raspberry Pi cocok untuk prototipe IoT dibandingkan PC konvensional?
Lebih mahal dan lebih kuat
Berukuran kecil, hemat daya, dan fleksibel
Memiliki lebih banyak port USB
Bisa menjalankan aplikasi Windows dengan lebih cepat
Tidak membutuhkan sistem operasi
4.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
void loop() {
digitalWrite(13, HIGH);
delay(500);
digitalWrite(13, LOW);
delay(500);
}
Jika nilai delay diubah menjadi 1000, bagaimana efeknya pada LED?
LED berkedip lebih cepat
LED berkedip lebih lambat
LED menyala tanpa berkedip
LED tidak menyala sama sekali
LED berkedip dengan pola acak
5.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
apa fungsi utama GPIO?
Mengontrol tegangan daya sistem
Menyediakan penyimpanan tambahan
Menyediakan antarmuka jaringan
Mengontrol perangkat input/output eksternal
Menjalankan kode Python secara otomatis
6.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
int tombol1 = digitalRead(2);
int tombol2 = digitalRead(3);
if (tombol1 == HIGH && tombol2 == HIGH) {
digitalWrite(13, HIGH);
} else {
digitalWrite(13, LOW);
}
Apa yang terjadi pada LED jika tombol pada pin 2 dan pin 3 ditekan bersamaan?
LED mati
LED berkedip cepat
LED menyala
Tidak ada reaksi
LED berkedip lambat
7.
MULTIPLE CHOICE QUESTION
30 sec • 3 pts
import Adafruit_DHT
sensor = Adafruit_DHT.DHT11
pin = 4
humidity, temperature = Adafruit_DHT.read_retry(sensor, pin)
if temperature > 30:
print("Suhu terlalu panas!")
Apa fungsi utama kode di atas?
Membaca dan menampilkan suhu dari sensor DHT11
Mengontrol kipas angin berdasarkan suhu
Mengontrol suhu ruangan secara otomatis
Mengatur kelembapan berdasarkan suhu
Membaca suhu ruangan
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
25 questions
CyberSecurity Exam 1
Quiz
•
9th - 12th Grade
25 questions
PRETEST Big Data
Quiz
•
1st Grade - University
25 questions
The Cold War and Consumerism
Quiz
•
12th Grade
25 questions
Robotics
Quiz
•
9th - 12th Grade
30 questions
Input & Output devices
Quiz
•
12th Grade
25 questions
Aprender Informática y Computación
Quiz
•
1st Grade - University
25 questions
Robotics Quiz
Quiz
•
10th - 12th Grade
25 questions
Quiz Sistem Operasi
Quiz
•
10th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
29 questions
Alg. 1 Section 5.1 Coordinate Plane
Quiz
•
9th Grade
22 questions
fractions
Quiz
•
3rd Grade
11 questions
FOREST Effective communication
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
20 questions
SSS/SAS
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade
23 questions
CCG - CH8 Polygon angles and area Review
Quiz
•
9th - 12th Grade
8 questions
Momentum and Collisions
Lesson
•
9th - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade