
PHP Quiz

Quiz
•
Other
•
12th Grade
•
Easy
Alfian Nur
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Apa sintaks untuk mendeklarasikan variabel dalam PHP?
$variable_name
$name_variable
variable_name$
variable$name
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Tipe data apa yang digunakan untuk menyimpan satu karakter dalam PHP?
integer
boolean
array
string
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Apa hasil dari kode berikut? $x = 5; $y = 10; echo $x + $y;
50
25
15
2
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Struktur kontrol mana yang digunakan untuk mengeksekusi sebuah blok kode berulang selama suatu kondisi itu bernilai benar?
pernyataan switch
pernyataan if
perulangan while
perulangan for
5.
OPEN ENDED QUESTION
3 mins • 5 pts
Apa hasil dari kode berikut? $x = 1; while ($x <= 5) { echo $x; $x++; }
Evaluate responses using AI:
OFF
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Fungsi apa yang digunakan untuk mendapatkan panjang sebuah string dalam PHP?
strlen()
strsize()
strcount()
strlength()
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Apa hasil dari kode berikut? $colors = array('merah', 'hijau', 'biru'); echo $colors[1];
kuning
biru
hijau
merah
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Quiz Pretest

Quiz
•
12th Grade
17 questions
PTS INFORMATIKA 8-1

Quiz
•
12th Grade - University
20 questions
Arsitektur dan Aplikasi SIP

Quiz
•
9th - 12th Grade
20 questions
MYOB

Quiz
•
11th - 12th Grade
19 questions
Personal Computer (PC)

Quiz
•
12th Grade
20 questions
PRAMUKA/ SCOUT/ SCOUTING

Quiz
•
10th Grade - University
20 questions
SURAT ELEKTRONIK

Quiz
•
10th - 12th Grade
16 questions
2020 kpop Quiz (Jan & Feb)

Quiz
•
5th Grade - Professio...
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade