K1 - Pemrograman Web

Quiz
•
Computers
•
University
•
Hard
Muhammad Davi
Used 6+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Berikut beberapa aturan penamaan variabel, aturan yang benar pada bahasa pemrograman PHP adalah?
1. Diawali dengan karakter dolar ($) dan diikuti dengan nama pengenal
2. Nama pengenal dimulai dengan huruf atau garis bawah (_)
3. Boleh diawali dengan angka
4. Tidak boleh mengandung spasi
5. Bersifat case sensitive (huruf besar dan kecil dibedakan)
6. Tidak ada minimal karakter
1-2-3-4-5-6
1-2-3-4-5
1-3-4-5-6
1-2-4-5
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Format percabangan if - elseif - if yang benar adalah?
if (ekspresiA) {
statement1;
} else if (ekspresiB) { statement2;
}
if (ekspresiA) {
statement1;
} else if (ekspresiB) {
statement1;
} else {
statement1;
}
if (ekspresiA)
statement1;
} elseif (ekspresiB) {
statement1;
} else {
statement1;
}
if (ekspresiA) { statement1;
} elseif (ekspresiB) {
statement2;
} else {
statement3;
}
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Format percabangan switch yang benar adalah?
switch ($variable) {
case value_1:{
statement1;
break;
}
default{
statement3;
break;
}
switch ($variable) {
case value_1:
statement1;
break;
case value_2:
statement2;
break;
default:
statement3;
break;
}
switch ($variable) {
case value_1:
statement1;
break;
defeult:
statement3;
break;
}
switch ($variable)
case value_1:
statement1;
break;
case value_2:
statement2;
break;
default:
statement3;
break;
4.
MULTIPLE SELECT QUESTION
10 sec • 1 pt
Format perulangan for dan foreach yang benar adalah? (pilih 2)
for (increment; condition; inisialisasi) {
}
for (inisialisasi; condition; increment) {
statement;
}
foreach ($var_array as $var) {
statement;
}
foreach ($var_array as $var)
statement;
}
5.
MULTIPLE SELECT QUESTION
10 sec • 1 pt
Format perulangan while dan do while yang benar adalah? (pilih 2)
while(inisialisasi;) {
statement;
increment;
}
inisialisasi;
do {
statement;
increment;
} while(condition)
do (inisialisasi;) {
increment;
} while(condition)
inisialisasi; while(condition) {
statement;
increment;
}
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Fungsi tambahSatu tersebut menghasilkan output?
Error
$a
5
6
7.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Kode untuk membuat array yang benar adalah?
$nama = array["Nafisah", "Luthfi", "Maisha", "Faiza"];
$nama = ("Nafisah", "Luthfi", "Maisha", "Faiza");
$nama = {"Nafisah", "Luthfi", "Maisha", "Faiza"}
$nama = array("Nafisah", "Luthfi", "Maisha", "Faiza");
Create a free account and access millions of resources
Similar Resources on Wayground
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
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University