XI RPL Quizziz Pertemuan 3 XI RPL (Array dan Fungsi)

Quiz
•
Information Technology (IT)
•
11th Grade
•
Hard
SULTHAN SHIHAB
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Struktur data di PHP yang memungkinkan kita menyimpan banyak nilai dalam satu variabel tunggal adalah...
Variabel Tunggal
Konstanta
Array
Objek
Fungsi
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Manakah cara penulisan Indexed Array di PHP yang PALING disarankan saat ini?
$buah = array("Apel", "Jeruk");
$buah = ["Apel", "Jeruk"];
$buah[] = "Apel"; $buah[] = "Jeruk";
$buah = "Apel", "Jeruk";
$buah = new Array("Apel", "Jeruk");
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Jika Anda memiliki $siswa = ["Budi", "Ani", "Cahyo"];, bagaimana cara Anda mengakses nama "Ani"?
$siswa[1]
$siswa[Ani]
$siswa{1}
$siswa.1
$siswa->Ani
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Indeks awal (pertama) pada Indexed Array di PHP selalu dimulai dari angka...
1
0
-1
Bebas
Tergantung jumlah elemen
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Anda ingin menyimpan data profil pengguna yang terdiri dari "nama", "email", dan "umur". Jenis array yang paling sesuai untuk kasus ini adalah...
Indexed Array
Associative Array
Multidimensional Array
Numeric Array
Mixed Array
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perhatikan kode berikut: <?php
$produk = [
"nama" => "Laptop",
"harga" => 12000000,
"stok" => 50
];
echo $produk["harga"];
?> Output dari kode di atas adalah...
Laptop
12000000
stok
50
nama
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa fungsi utama dari foreach loop ketika digunakan dengan array?
Untuk mengulang kode berdasarkan jumlah yang diketahui.
Untuk mengulang elemen array tanpa perlu mengelola indeks secara manual.
Untuk menambahkan elemen ke array.
Untuk menghapus elemen dari array.
Untuk mengurutkan elemen array.
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
ASSESMEN SUMATIF 1 KELAS XI - JARINGAN KOMPUTER & INTERNET-

Quiz
•
11th Grade - University
20 questions
XI Kuis Analisis Data

Quiz
•
10th Grade - University
20 questions
BAB 5 ANALISIS DATA A. Mengumpulkan Data KELAS 5

Quiz
•
5th Grade - University
25 questions
XII RPL Quizziz Pertemuan 3 Migrasi Database & Seeder

Quiz
•
12th Grade
20 questions
BAB 5 ANALISIS DATA B. Membaca dan Menafsirkan Data KELAS 5

Quiz
•
5th Grade - University
20 questions
Basis Data

Quiz
•
11th Grade
20 questions
quiz1B1

Quiz
•
7th Grade - University
20 questions
6E UAS LIterasi Big Data

Quiz
•
University
Popular Resources on Wayground
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
20 questions
Lab Safety and Equipment

Quiz
•
8th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
12 questions
Unit Zero lesson 2 cafeteria

Lesson
•
9th - 12th Grade
13 questions
25-26 Behavior Expectations Matrix

Quiz
•
9th - 12th Grade
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
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
21 questions
Set SMART Goals

Lesson
•
9th - 12th Grade
20 questions
Lab Equipment Quiz Chemistry

Quiz
•
9th - 12th Grade