Pemrograman Web:Contoh Soal: Difference between revisions
| (2 intermediate revisions by the same user not shown) | |||
| Line 237: | Line 237: | ||
</syntaxhighlight>Pada contoh di atas, kita membuat variabel bernama <code>title</code> dengan nilai berupa teks ''(string)'': <code>"Belajar Pemrograman Javascript"</code>. | </syntaxhighlight>Pada contoh di atas, kita membuat variabel bernama <code>title</code> dengan nilai berupa teks ''(string)'': <code>"Belajar Pemrograman Javascript"</code>. | ||
===== 33. Format penulisan sintaks CSS yang benar adalah ===== | ===== 33. Format penulisan sintaks CSS yang benar adalah<ref>[https://quizizz.com/admin/quiz/5e1dc1687e6e8a001b31c793/uas-webpro quizizz.com] - UAS WebPro</ref> ===== | ||
*''Kode berikut''<syntaxhighlight lang="css"> | *'''''Kode berikut'''''<syntaxhighlight lang="css"> | ||
Selector { | Selector { | ||
Property: value; | Property: value; | ||
| Line 269: | Line 269: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==== 34. Berikut sintak yang benar untuk menulis kalimat Hallo JavaScript ==== | ==== 34. Berikut sintak yang benar untuk menulis kalimat Hallo JavaScript<ref name=":0" /> ==== | ||
* <code>document.line("Hallo Javascript")</code> | * <code>document.line("Hallo Javascript")</code> | ||
* <code>document.show("Hallo Javascript")</code> | * <code>document.show("Hallo Javascript")</code> | ||
* <code>document.alert("Hallo Javascript")</code> | * <code>document.alert("Hallo Javascript")</code> | ||
* ''<code>document.write("Hallo Javascript")</code>'' | * ''<code>'''document.write("Hallo Javascript")'''</code>'' | ||
==== 35. Untuk membuat checkbox menggunakan sintak ==== | ==== 35. Untuk membuat checkbox menggunakan sintak<ref>[https://kelasprogrammer.com/membuat-checkbox-html/ kelasprogrammer.com] - Belajar Membuat Checkbox di HTML</ref> ==== | ||
* <code><checkbox></code> | * <code><checkbox></code> | ||
* <code>''<input type=checkbox>''</code> | * <code>'''''<input type=checkbox>'''''</code> | ||
* <code><input type=check></code> | * <code><input type=check></code> | ||
* <code><input type=check_box></code> | * <code><input type=check_box></code> | ||
==== 36. Berikut ini yang BUKAN termasuk tag untuk membuat heading adalah ==== | ==== 36. Berikut ini yang BUKAN termasuk tag untuk membuat heading adalah<ref name=":2" /> ==== | ||
* <code><nowiki><h4></nowiki></code> | * <code><nowiki><h4></nowiki></code> | ||
* <code><nowiki><h5></nowiki></code> | * <code><nowiki><h5></nowiki></code> | ||
* <code><nowiki><h6></nowiki></code> | * <code><nowiki><h6></nowiki></code> | ||
* <code>''<h7>''</code> | * <code>'''''<h7>'''''</code> | ||
* Semua Benar | * Semua Benar | ||
==== 37. Perintah yang berfungsi untuk menggabungkan beberapa kolom dalam tabel menjadi satu ==== | ==== 37. Perintah yang berfungsi untuk menggabungkan beberapa kolom dalam tabel menjadi satu<ref>[https://brainly.co.id/tugas/40397425 brainly.co.id] - Perintah manakah yang dapat menggabungkan beberapa kolom menjadi satu</ref> ==== | ||
* BR | * BR | ||
| Line 297: | Line 297: | ||
* Col> | * Col> | ||
* Row> | * Row> | ||
* ''Semua Salah'' | * '''''Semua Salah''''' | ||
Tidak, <code>col</code> dan "colspan" adalah atribut HTML yang berbeda dalam tabel. | |||
===== 38. Perintah Unordered list agar dapat menampilkan list bulet titik adalah ===== | Atribut <code>col</code> digunakan untuk menentukan properti kolom spesifik dalam tabel HTML. | ||
Sementara itu, atribut <code>colspan</code> digunakan untuk menentukan berapa banyak kolom yang harus ditempati oleh sel tabel. Ini membuat sel membentang dari satu kolom ke beberapa kolom lain. | |||
===== 38. Perintah Unordered list agar dapat menampilkan list bulet titik adalah<ref>[https://rikoadis.blogspot.com/2016/04/soal-dan-jawaban-pemrograman-web.html blogspot.com] - SOAL DAN JAWABAN PEMROGRAMAN WEB</ref><ref>[https://brainly.co.id/tugas/44776577 brainly.co.id] - Perintah Unordered list agar dapat menampilkan list bulet titik adalah</ref> ===== | |||
* Circle | * Circle | ||
* ''Disc'' | * '''''Disc''''' | ||
* Textbox | * Textbox | ||
* Donuts | * Donuts | ||
* Ovals | * Ovals | ||
==== 39. Bahasa Pemrograman yang biasa digunakan untuk membuat halaman web adalah ==== | ==== 39. Bahasa Pemrograman yang biasa digunakan untuk membuat halaman web adalah<ref>[https://quizizz.com/admin/quiz/5df6fd5fdef72a001e72abb9/pemrograman-web quizizz.com] - Pemrograman Web</ref> ==== | ||
* ''HTML'' | * '''''HTML''''' | ||
* Web | * Web | ||
* Program | * Program | ||
| Line 315: | Line 320: | ||
* WWW | * WWW | ||
==== 40. Berikut adalah jenis-jenis operator di javascript, KECUALI ==== | ==== 40. Berikut adalah jenis-jenis operator di javascript, KECUALI<ref name=":0" /> ==== | ||
* Aritmatika | * Aritmatika | ||
* pembanding | * pembanding | ||
* Logika | * Logika | ||
* '' | * '''''Perulangan''''' | ||
* | * Pemberian nilai | ||
==== 41. Untuk membuat drop-down list, menggunakan tag ==== | ==== 41. Untuk membuat drop-down list, menggunakan tag<ref>[https://www.freecodecamp.org/indonesian/news/tag-select-html-cara-membuat-menu-dropdown-atau-daftar-combo/ freecodecamp.org] - Tag Select HTML – Cara Membuat Menu Dropdown atau Daftar Kombo</ref> ==== | ||
* <code><drop-up></code> | * <code><drop-up></code> | ||
| Line 337: | Line 342: | ||
* Web Designer | * Web Designer | ||
* Web Administrator | * Web Administrator | ||
* ''Web Browser'' | * '''''Web Browser''''' | ||
==== 43. Stuktur dasar untuk membuat tabel pada HTML adalah ==== | ==== 43. Stuktur dasar untuk membuat tabel pada HTML adalah ==== | ||