Yang bukan termasuk aturan penulisan nama variabel di PHP
PBO - Topik 1 dan 2

Quiz
•
Computers
•
12th Grade
•
Hard
HESTI NUGROHO
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Variabel diawali dengan tanda $
Karakter pertama setelah tanda $ harus huruf atau garis bawah ( _ )
Penamaan variabel bersifat case sensitive
Variabel boleh menggunakan spasi
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Penulisan data string yang benar
$email = /wahyu@gmail.com/;
$email = "wahyu@gmail.com";
$email = /*wahyu@gmail.com*/;
$email = (wahyu@gmail.com);
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Output dari kode berikut
$x = 1;
$x += 2;
$x -= 1;
echo $x;
adalah....
1
3
2
0
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Output dari kode berikut
$a = 2;
$b = 1;
if($a == 2 && $b == 2){
$x = 'benar';
}else{
$x = 'salah';
}
echo$x;
adalah….
benar
salah
error
//true statement
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Output dari kode berikut
$a = 2;
$b = 1;
if($a == 2 || $b == 2){
$x = 'benar';
}else{
$x = 'salah';
}
echo$x;
adalah….
benar
salah
error
//true statement
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Output dari kode berikut
$nomor = 12;
$nomor .= 34;
$nomor .= 56;
echo $nomor;
adalah....
102
123456
563412
654321
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Output dari kode berikut
$nomor = '12';
$nomor += '34';
$nomor += '56';
echo $nomor;
adalah....
102
123456
563412
654321
Create a free account and access millions of resources
Similar Resources on Quizizz
20 questions
Kualitas Source Code Program

Quiz
•
12th Grade
25 questions
UH PEMROGRAMAN DASAR 1

Quiz
•
10th - 12th Grade
15 questions
Operator dan Kontrol Struktur PHP

Quiz
•
2nd Grade - University
25 questions
ARDUINO UNO QUIZ 2

Quiz
•
12th Grade
25 questions
latihan PHP tahap 2

Quiz
•
11th Grade - University
20 questions
Berpikir Komputasional dan Algoritma Pemrograman

Quiz
•
12th Grade
20 questions
Python Basics 2

Quiz
•
9th - 12th Grade
20 questions
Quiz Pemrograman Phyton

Quiz
•
9th - 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 Computers
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