Pemrograman Web:Contoh Soal: Difference between revisions
| Line 225: | Line 225: | ||
===== 33. Format penulisan sintaks CSS yang benar adalah ===== | ===== 33. Format penulisan sintaks CSS yang benar adalah ===== | ||
* <syntaxhighlight lang="css"> | *''Kode berikut''<syntaxhighlight lang="css"> | ||
Selector { | Selector { | ||
Property: value; | Property: value; | ||
| Line 231: | Line 231: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* <syntaxhighlight lang="css"> | *Kode berikut<syntaxhighlight lang="css"> | ||
Property { | Property { | ||
Selector: value; | Selector: value; | ||
| Line 237: | Line 237: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* <syntaxhighlight lang="css"> | *Kode berikut<syntaxhighlight lang="css"> | ||
Value { | Value { | ||
Property: selector; | Property: selector; | ||
| Line 243: | Line 243: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* <syntaxhighlight lang="css"> | *Kode berikut<syntaxhighlight lang="css"> | ||
Selector { | Selector { | ||
value: property; | value: property; | ||
| Line 249: | Line 249: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
* <syntaxhighlight lang="css"> | *Kode berikut<syntaxhighlight lang="css"> | ||
Selector { | Selector { | ||
Property; value; | Property; value; | ||
| Line 255: | Line 255: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Berikut sintak yang benar untuk menulis kalimat Hallo JavaScript ==== | ==== 34. Berikut sintak yang benar untuk menulis kalimat Hallo JavaScript ==== | ||
* <code>document.line("Hallo Javascript")</code> | |||
* <code>document.show("Hallo Javascript")</code> | |||
* <code>document.alert("Hallo Javascript")</code> | |||
* ''<code>document.write("Hallo Javascript")</code>'' | |||
==== | ==== 35. Untuk membuat checkbox menggunakan sintak ==== | ||
=== | * <code><checkbox></code> | ||
* <code>''<input type=checkbox>''</code> | |||
* <code><input type=check></code> | |||
* <code><input type=check_box></code> | |||
==== | ==== 36. Berikut ini yang BUKAN termasuk tag untuk membuat heading adalah ==== | ||
* <code><nowiki><h4></nowiki></code> | |||
* <code><nowiki><h5></nowiki></code> | |||
* <code><nowiki><h6></nowiki></code> | |||
* <code>''<h7>''</code> | |||
* Semua Benar | |||
==== | ==== 37. Perintah yang berfungsi untuk menggabungkan beberapa kolom dalam tabel menjadi satu ==== | ||
* BR | |||
* Textarea | |||
* Col> | |||
* Row> | |||
* ''Semua Salah'' | |||
==== | ===== 38. Perintah Unordered list agar dapat menampilkan list bulet titik adalah ===== | ||
* Circle | |||
* ''Disc'' | |||
* Textbox | |||
* Donuts | |||
* Ovals | |||
==== | ==== 39. Bahasa Pemrograman yang biasa digunakan untuk membuat halaman web adalah ==== | ||
* ''HTML'' | |||
* Web | |||
* Program | |||
* Internet | |||
* WWW | |||
==== | ==== 40. Berikut adalah jenis-jenis operator di javascript, KECUALI ==== | ||
* Aritmatika | |||
* pembanding | |||
* Logika | |||
* ''perulangan'' | |||
* pemberian nilai | |||
==== | ==== 41. Untuk membuat drop-down list, menggunakan tag ==== | ||
= | * <code><drop-up></code> | ||
* <code><drop-down></code> | |||
* ''<code><select></code>'' | |||
* <code><input type='drop-down'></code> | |||
* <code><input type='drop-up'></code> | |||
==== | ==== 42. Profesi dalam pengembangan web, kecuali ==== | ||
* Web Developer | |||
* Web Programer | |||
* Web Designer | |||
* Web Administrator | |||
* ''Web Browser'' | |||
==== | ==== 43. Stuktur dasar untuk membuat tabel pada HTML adalah ==== | ||
= | * Kode berikut<syntaxhighlight lang="html"> | ||
<table> | |||
<tr> </tr> | |||
<td></td> | |||
<table> | |||
</syntaxhighlight> | |||
= | * Kode berikut<syntaxhighlight lang="html"> | ||
<table> | |||
<tr> | |||
<tr><td> | |||
<table> | |||
</td> | |||
</syntaxhighlight> | |||
= | * ''Kode berikut''<syntaxhighlight lang="html"> | ||
<table> | |||
<tr> | |||
<td> </td> | |||
</tr> | |||
</table> | |||
</syntaxhighlight> | |||
= | * Kode berikut<syntaxhighlight lang="html"> | ||
<table> | |||
<head> | |||
<td> </tr> | |||
<table> | |||
<tr> </tr> | |||
</table> | |||
</td> | |||
</syntaxhighlight> | |||
* Kode berikut<syntaxhighlight lang="html"> | |||
<td> | |||
<table> | |||
<tr> </tr> | |||
</table> | |||
</td> | |||
</syntaxhighlight> | |||
==== | ==== 44. Tag yang digunakan untuk mendefinisikan jenis huruf, warna dan juga ukuran teks adalah ==== | ||
* <code><area></code> | |||
* <code><fnt></code> | |||
* <code><form></code> | |||
* <code><head></code> | |||
* ''<code><nowiki><font></nowiki></code>'' | |||
==== | ==== 45. Bagaimana cara membuat fungsi di javascript? ==== | ||
= | * <code>''function nama_fungsi()''</code> | ||
* <code>function => nama_fungsi()</code> | |||
* <code>function : nama_fungsi()</code> | |||
* <code>function [nama_fungsi]</code> | |||
==== | ==== 46. Untuk membuat radio button mengunakan sintak ==== | ||
== | * <code><radio></code> | ||
* <code><input type=radio_button></code> | |||
* <code>''<input type=radio>''</code> | |||
* <code><radio_button></code> | |||
==== | ==== 47. Untuk pembuatan HTML software yang dapat digunakan adalah ==== | ||
* Microsoft PowerPoint | |||
* ''Notepad'' | |||
* Photoshop | |||
* CorelDraw | |||
* Windows Explorer | |||
==== | ==== 48. Perintah yang digunakan di dalam javascript untuk menerima inputan dari keyboard adalah ==== | ||
* input | |||
* alert | |||
* ''prompt'' | |||
* OnClick | |||
* Show | |||
==== | ==== 49. Perintah untuk membuat garis datar (horizontal) ==== | ||
* ''<code><nowiki><hr></nowiki></code>'' | |||
* <code><break></code> | |||
* <code><nowiki><br></nowiki></code> | |||
* <code><img></code> | |||
* <code><nowiki><div></nowiki></code> | |||
==== | ==== 50. Fungsi sebuah tag <a href="https://univ.ac.id"> Universitas UNIV </a> adalah ==== | ||
* Untuk memberikan teks univ.ac.id pada halaman web | |||
* Untuk memberikan tulisan pada univ.ac.id | |||
* ''Untuk memberikan tombol/link menuju ke halaman <nowiki>https://univ.ac.id</nowiki>'' | |||
* Untuk memberikan penomoran pada tulisan univ.ac.id Network | |||