K1 - Pemrograman Web
Quiz
•
Computers
•
University
•
Practice Problem
•
Hard
Muhammad Davi
Used 6+ times
FREE Resource
Enhance your content in a minute
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
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
Already have an account?
Similar Resources on Wayground
10 questions
DECISION MAKING IN C
Quiz
•
University
10 questions
C++ Fundamentals
Quiz
•
University
10 questions
Quiz Pemrograman C++
Quiz
•
11th Grade - University
11 questions
KUIS PERTEMUAN 3 Teks dan Image
Quiz
•
University
10 questions
Section A Past Year Exam
Quiz
•
University
10 questions
QUIZ 2
Quiz
•
University
10 questions
Algoritma Pemrograman (Komunikasi)
Quiz
•
University
15 questions
Технологии программирования лекция 5
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
7 questions
Different Types of Energy
Interactive video
•
4th Grade - University
20 questions
Slopes and Slope-Intercept Form
Quiz
•
8th Grade - University
7 questions
Force and Motion
Interactive video
•
4th Grade - University
7 questions
Biomolecules (Updated)
Interactive video
•
11th Grade - University
20 questions
Winter/Holiday Trivia
Quiz
•
KG - University
10 questions
WINTER WIN Time - ELA - 12/9/2025
Quiz
•
KG - University
7 questions
Human Impact on Resources
Interactive video
•
4th Grade - University
