
fungsi if else

Quiz
•
Engineering
•
11th Grade
•
Medium
Yuli Rohmad Riadi
Used 6+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade
Discover more resources for Engineering
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
13 questions
8th - Unit 1 Lesson 3

Quiz
•
9th - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
16 questions
Metric Conversions

Quiz
•
11th Grade
21 questions
SPANISH GREETINGS REVIEW

Quiz
•
9th - 12th Grade
25 questions
Government Unit 1

Quiz
•
7th - 11th Grade