Search Header Logo
Quiz PHP

Quiz PHP

Assessment

Interactive Video

Computers

11th Grade

Hard

Created by

Assesor 229

FREE Resource

4 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

<?php

$nama = "Budi";

echo "Halo, " . $nama;

?>

Output yang dihasilkan dari kode tersebut adalah...

Halo, Budi!
Halo, Budhi
Halo, Budi
Halo, Budi dan teman-teman

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

<?php

$a = 10;

$b = 5;

$hasil = $a + $b;

echo $hasil;

?>

Makna dari perintah di atas adalah...

The code outputs the quotient of 10 and 5, which is 2.
The code outputs the difference of 10 and 5, which is 5.
The code outputs the sum of 10 and 5, which is 15.
The code outputs the product of 10 and 5, which is 50.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

<?php

function luasPersegi($sisi){

return $sisi * $sisi;

}

echo luasPersegi(5);

?>

Output yang dihasilkan adalah...

10
15
30
25
20

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

<?php

$x = 10;

$y = "10";

if($x == $y){

echo "Sama Nilai";

}else{

echo "Berbeda";

}

?>

Analisislah hasil dari kode di atas. Output yang dihasilkan adalah...

Berbeda
Sama Angka
Sama Tipe
Sama Nilai

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?