Search Header Logo

FUNGSI FOR

Authored by Yuli Rohmad Riadi

Engineering

11th Grade

Used 8+ times

FUNGSI FOR
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Dalam program Arduino, perintah `pinMode(pinLED, OUTPUT);` berfungsi untuk …

Menentukan apakah LED menyala atau mati

Menentukan pin LED sebagai input atau output

Memberi nilai awal pada pin

Mengatur kecepatan eksekusi program

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Perintah `digitalWrite(pinLED, HIGH);` akan menyebabkan …

LED mati

LED menyala

Pin LED menjadi input

Program berhenti

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Perulangan `for(int i=0; i<5; i++)` akan mengulang sebanyak …

4 kali

5 kali

6 kali

Tanpa batas

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Jika `i==3` dalam program, LED yang menyala adalah …

Hanya LED1

LED1, LED2, LED3

LED1 dan LED4

Semua LED

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Fungsi `delay(2000);` pada program berarti …

Jeda 200 detik

Jeda 2 detik

Jeda 20 milidetik

Tidak ada jeda

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Apabila terjadi kesalahan pengetikan kode, pesan yang muncul di Arduino IDE adalah …

Error Command

Warning

Compilation error (warna merah)

Debug message

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Struktur utama program Arduino terdiri dari dua bagian, yaitu …

`setup()` dan `loop()`

`input()` dan `output()`

`if()` dan `for()`

`define()` dan `main()`

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Microsoft

Continue with Microsoft

or continue with

Facebook

Facebook

Apple

Apple

Others

Others

Already have an account?