Apa sintaks untuk mendeklarasikan variabel dalam PHP?

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
$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 Quizizz
20 questions
Arsitektur dan Aplikasi SIP

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

Quiz
•
10th Grade - University
19 questions
Personal Computer (PC)

Quiz
•
12th Grade
20 questions
SURAT ELEKTRONIK

Quiz
•
10th - 12th Grade
20 questions
Ulangan harian Humas dan Keprotokolan

Quiz
•
10th - 12th Grade
15 questions
Kuis Pramuka

Quiz
•
10th - 12th Grade
15 questions
Tomorrow X Together

Quiz
•
KG - Professional Dev...
15 questions
GENAP_UAS2025_KELAS XII RPL1_PBO

Quiz
•
12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Other
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University