
Quiz Pemrograman Arduino
Authored by Khofifah Alawyah
Computers
9th - 12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Berdasarkan kode di atas, apakah fungsi setup() dan loop() memiliki peran yang benar?
Setup () digunakan untuk menjalankan program utama, sedangkan loop () hanya berfungsi satu kali.
Kedua fungsi hanya berjalan satu kali.
Loop () berfungsi untuk inisialisasi komponen, sedangkan setup () berjalan secara terus-menerus.
Setup () hanya berjalan satu kali, sedangkan loop () akan berjalan terus-menerus.
2.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Apa peran utama dari fungsi pinMode () dalam program Arduino?
Mengatur kondisi logika HIGH dan LOW pada pin.
Menentukan apakah pin akan berfungsi sebagai input atau output.
Mengatur frekuensi PWM pada pin.
Mengatur jeda waktu pada pin yang dipilih.
3.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Dalam penulisan kode Arduino, mengapa penting untuk memberikan komentar pada baris-baris tertentu?
Komentar membantu program berjalan lebih cepat.
Komentar memperjelas fungsi dan maksud dari kode, terutama bagi pembaca lain atau pengembang di masa mendatang.
Komentar mencegah kode mengalami error saat dikompilasi.
Komentar berfungsi untuk menghemat memori pada mikrokontroler.
4.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Berdasarkan aturan penulisan kode program Arduino, apa perbaikan yang harus dilakukan agar kode tersebut bisa dikompilasi?
Menambahkan titik koma (;) di akhir baris Serial.begin(9600);.
Mengganti Serial.begin(9600) menjadi Serial.begin(9600);.
Menambahkan tanda kurung () setelah kata setup.
Mengganti Serial.println("Hello, World!") menjadi Serial.print("Hello, World!").
5.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Jika sebuah variabel dideklarasikan di luar fungsi setup() dan loop(), variabel tersebut disebut sebagai variabel apa?
Variabel lokal
Variabel eksternal
Variabel global
Variabel konstant
6.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
int a = 5;
int b = 10;
int c = a + b;
Berapa nilai dari variabel C
5
10
20
15
7.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Manakah dari operator berikut yang digunakan untuk membandingkan apakah dua nilai sama?
=
==
!=
>=
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
15 questions
Quiz Analisis Data
Quiz
•
10th Grade
15 questions
Secondary Storage Media
Quiz
•
7th - 9th Grade
10 questions
Quiz Dadakan Informatika
Quiz
•
10th Grade
10 questions
POST TES SISTEM OPERASI
Quiz
•
10th Grade
11 questions
Berpikir Komputasional
Quiz
•
12th Grade
10 questions
POST TES INFORMATIKA BAB 2
Quiz
•
9th Grade
14 questions
ABC in python
Quiz
•
9th Grade
10 questions
Տեքստային խմբագրիչներ
Quiz
•
4th - 10th Grade
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