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
Yang bukan termasuk aturan penulisan nama variabel di PHP
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 Wayground
15 questions
Informatika

Quiz
•
7th Grade - University
20 questions
Uji Pengetahuan Dasar Informatika

Quiz
•
8th Grade - University
20 questions
12 CA ONE MARK 1-18

Quiz
•
12th Grade
15 questions
PABX Quiz

Quiz
•
12th Grade
15 questions
MID INFORMATIKA 2025

Quiz
•
10th Grade - University
18 questions
Chapitre 10 - 11

Quiz
•
12th Grade
20 questions
Uji Pemahaman Berfikir Komputasional

Quiz
•
9th Grade - University
20 questions
untitled

Quiz
•
8th Grade - University
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