
PHP Native (Array dan Fungsi)
Quiz
•
Information Technology (IT)
•
11th Grade
•
Easy
sulthan Shihab
Used 2+ times
FREE Resource
Enhance your content
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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
25 questions
ASTS 2 INFORMATIKA KELAS 7
Quiz
•
7th Grade - University
20 questions
Web 3.6 Bacaan
Quiz
•
11th Grade
20 questions
Soal STS TIK Kelas 5 Semester 2
Quiz
•
5th Grade - University
20 questions
Assesmen Berpikir komputasi
Quiz
•
11th Grade
20 questions
PHP OOP 1 (Class s.d. Constructor)
Quiz
•
11th Grade
20 questions
BAB 5 ANALISIS DATA B. Data dalam Bentuk Diagram KELAS 4
Quiz
•
4th Grade - University
24 questions
TIK 9 AD Memahami Representasi Data
Quiz
•
10th Grade - University
20 questions
SOAL MEDIA PEMBELAJARAN
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
ELA Advisory Review
Quiz
•
7th Grade
15 questions
Subtracting Integers
Quiz
•
7th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
29 questions
CCG 2.2.3 Area
Quiz
•
9th - 12th Grade
15 questions
PRESENTE CONTINUO
Quiz
•
9th - 12th Grade
13 questions
BizInnovator Startup - Experience and Overview
Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)
Quiz
•
9th - 12th Grade
