
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
20 questions
Test Pertemuan 1 - 2 SKEP XI
Quiz
•
11th Grade
20 questions
24-25 SGM #1 - Engineering Design Parameters
Quiz
•
11th Grade
25 questions
PAS IML
Quiz
•
11th Grade
20 questions
Asesmen Sumatif : Pembubutan Tirus
Quiz
•
11th Grade
25 questions
Arduino based quiz
Quiz
•
2nd Grade - University
25 questions
Panel Indikator Sepeda Motor
Quiz
•
11th Grade
25 questions
Engineering-A Very Short Intro 4
Quiz
•
11th Grade
20 questions
STS PRE
Quiz
•
11th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Engineering
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
10 questions
Evaluating Piecewise Functions Practice
Quiz
•
11th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade