wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Prakom Terampil

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

Perintah PHP selalu diawali dengan, kecuali....

a)

<?php

b)

<?

c)

?>

d)

<%

2.

Perintah untuk menjadikan komentar pada PHP...

a)

//

b)

#

c)

<!--

d)

$

3.

Perintah untuk mendefenisikan variable di PHP adalah

a)

//

b)

#

c)

$

d)

@

4.

tag di HTML untuk membuat form selalu diawali dengan

a)

<table

b)

<form

c)

<tr

d)

<formulir

5.

Perintah untuk mencetak Tulisan di PHP menggunakan sintaks

a)

Println

b)

echo

c)

print.out

d)

mysqli_fetch_array

6.

Diantara yang berikut, yang bukan termasuk control statement adalah:

a)

IF

b)

FOR

c)

WHILE

d)

GET

7.

Awal dokumen HTML ditandai dengan tag

a)

<html>

b)

</html>

c)

<table>

d)

<head>

8.

'<a href="text1">text2</a> merupakan sintax html untuk

a)

image

b)

table

c)

hyperling

d)

form

9.

perintah untuk merge 2 kolom di table menggunakan

a)

rowspan = "2"

b)

colspan = "2"

c)

rowpan = 2

d)

colpan = 2

10.

perintah untuk merge 2 baris di table menggunakan

a)

rowspan = "2"

b)

colspan = "2"

c)

rowpan = 2

d)

colpan = 2

11.

syntax tersebut akan menampilkan output

a)
b)
c)
d)
12.

<b>This text </b> . akan menampilkan output

a)

This text

b)

This text

c)

This text

d)

This

13.

<i>This text</i> . akan menampilkan output

a)

This text

b)

This text

c)

This text

d)

This text

14.

<p>This is <sub>text</sub> bro</p> . akan menampilkan output

a)

This is text bro

b)

This is text bro

c)

This is bro

d)

This is text bro

15.

sintax IF yang benar adalah

a)

if (condition) {

code true; } else { code false; }

b)

if (condition) {

code false; } else { code true; }

c)

if (condition) {

code true; } { code false}

d)

if condition {

code true; } { code false}