
fungsi if else
Authored by Yuli Rohmad Riadi
Engineering
11th Grade
Used 6+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perintah `const int pinLED = 8;` berfungsi untuk …
Menentukan LED berkedip setiap 8 detik
Menyimpan nilai pin LED pada port 8 secara konstan
Mengatur agar LED menyala di pin 8 saja
Memberi delay 8 ms pada LED
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fungsi `pinMode(pinLED, OUTPUT);` digunakan untuk …
Membaca input dari LED
Mengatur pinLED sebagai output
Mengatur pinLED sebagai input
Memberikan delay pada LED
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jika dalam program terdapat `delay(1000);`, maka artinya …
LED menyala selama 1 detik
LED mati selama 1 detik
Program berhenti selama 1 detik
Arduino reset dalam 1 detik
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagian kode berikut: if(timeDelay <= 100){ delay(3000); timeDelay = 1000; } berfungsi untuk …
Mengatur LED berkedip lebih cepat
Memberi jeda 3 detik lalu mereset timeDelay ke 1000
Mematikan LED secara permanen
Menambah kecepatan delay
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Variabel `timeDelay` pertama kali diisi dengan nilai …
100
3000
1000
8
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Setiap kali loop berjalan, jika `timeDelay > 100` maka …
Nilainya bertambah 100
Nilainya berkurang 100
Tetap 1000
Menjadi 0
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perintah `digitalWrite(pinLED, HIGH);` artinya …
Pin LED diisi logika 0
LED dimatikan
Pin LED diisi logika 1
Memberi delay sebelum LED mati
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
Popular Resources on Wayground
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
14 questions
Boundaries & Healthy Relationships
Lesson
•
6th - 8th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
3 questions
Integrity and Your Health
Lesson
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
9 questions
FOREST Perception
Lesson
•
KG
20 questions
Main Idea and Details
Quiz
•
5th Grade
Discover more resources for Engineering
8 questions
Spartan Way - Classroom Responsible
Quiz
•
9th - 12th Grade
22 questions
El Imperfecto
Quiz
•
9th - 12th Grade
15 questions
ACT Reading Practice
Quiz
•
11th Grade
20 questions
Grammar
Quiz
•
9th - 12th Grade
18 questions
Mendelian Genetics
Quiz
•
10th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
14 questions
Making Inferences From Samples
Quiz
•
7th - 12th Grade
25 questions
Early Cold War Quizziz
Quiz
•
11th Grade