Search Header Logo

PBO - Topik 1 dan 2

Authored by HESTI NUGROHO

Computers

12th Grade

Used 1+ times

PBO - Topik 1 dan 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?