PBO - Topik 1 dan 2

PBO - Topik 1 dan 2

12th Grade

20 Qs

quiz-placeholder

Similar activities

Quis PWPB PHP 1

Quis PWPB PHP 1

1st Grade - University

20 Qs

ARDUINO UNO QUIZ 2

ARDUINO UNO QUIZ 2

12th Grade

25 Qs

latihan PHP tahap 2

latihan PHP tahap 2

11th Grade - University

25 Qs

UH-PWPB

UH-PWPB

12th Grade

25 Qs

ALGORITMA PEMROGRAMAN LANJUTAN KELAS 8

ALGORITMA PEMROGRAMAN LANJUTAN KELAS 8

8th Grade - University

20 Qs

Pemrograman Dasar 3

Pemrograman Dasar 3

9th - 12th Grade

20 Qs

Sumatif Arduino

Sumatif Arduino

12th Grade - University

20 Qs

Pemrograman Arduino

Pemrograman Arduino

12th Grade

20 Qs

PBO - Topik 1 dan 2

PBO - Topik 1 dan 2

Assessment

Quiz

Computers

12th Grade

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?