
Quiz Pemrograman Arduino

Quiz
•
Computers
•
9th - 12th Grade
•
Hard
Khofifah Alawyah
FREE Resource
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?
=
==
!=
>=
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Evaluasi Javascript 3

Quiz
•
10th Grade
12 questions
Quiz bin GTA

Quiz
•
10th Grade
10 questions
Server Side Programming

Quiz
•
11th Grade
10 questions
Pewarisan Antar Interface

Quiz
•
11th Grade
9 questions
quis lat soal

Quiz
•
9th - 12th Grade
10 questions
Pretest Javascript (Array, Object, Function, Parameter)

Quiz
•
10th Grade
15 questions
Quiz Algoritma dan Pemrograman BAB VII

Quiz
•
7th Grade - University
15 questions
Informatika X Pemrograman C

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade