HTML & Hasilnya Latihan 3 Soal PG
Latihan Soal Web Progamming</center>
<center><font size="5">Nama : Doni Rizki Anugrah</center>
<center><font size="5">Mata kuliah : WEB Progamming</center>
<center><font size="5">NIK : 111 151 321 06
<html>
<body text="black"bgcolor="purple">
<style type="text/css">
<!-- Mulai_antinoscript \\
.alert {
background: #fff6bf url(http://upload.wikimedia.org/wikipedia/commons/c/c0/Exclamation.png) center no-repeat;
background-position: 5px 50%; /* x-pos y-pos */
text-align: left;
padding: 10px 20px 10px 45px;
border-top: 2px solid #ffd324;
border-bottom: 2px solid #ffd324;
}
// selesai_antinoscript -->
</style>
<script language="JavaScript">
<!-- Mulai_script_soal
var ans = new Array;
var done = new Array;
var score = 0;
ans[1] = "d";
ans[2] = "a";
ans[3] = "a";
ans[4] = "c";
ans[5] = "b";
ans[6] = "d";
an s[7] = "a";
ans[8] = "d";
ans[9] = "b";
ans[10] = "d";
function Engine(question, answer) {
if (answer != ans[question]) {
if (!done[question]) {
done[question] = -1;
alert("Salah!\n\nNilai anda sekarang adalah: " + score);
}
else {
alert("Anda sudah pernah menjawab soal ini!");
}
}
else {
if (!done[question]) {
done[question] = -1;
score++;
alert("Benar!\n\nNilai anda sekarang adalah: " + score);
}
else {
alert("Anda sudah pernah menjawab soal ini!");
}
}
}
function NextLevel () {
if (score > 10) {
alert("Anda mendapatkan nilai SEMPURNA !");
}
if (score >= 7 && score <= 11) {
alert("Akses Diterima! Klik tombol ...")
self.location="http://www.umboh.net/p/about.html"
}
else {
alert("Akses di tolak! anda membutuhkan 7 point untuk lanjut ke tahap selanjutnya.")
}
}
// Selesai_Script_Soal -->
</script>
<span style="font-size: x-large;"><span style="font-family: Arial;">Soal</span></span><br />
<b><font size="3">Petunjuk: Jumlah poin untuk lanjut ke sesi berikut adalah 7 poin</b><br/>
<noscript><p class="alert">Javasript tidak mendukung atau tidak aktif di browser anda. Mohon agar mengatifkan javascript anda.</p></noscript>
<hr />
<form><font size="3">
<b>1. Attribute widht digunakan untuk....</b><br />
<input onclick="Engine(1, this.value)" type="radio" value="a" />Tinggi tabel <br />
<input onclick="Engine(1, this.value)" type="radio" value="b" />Jarak antara sel <br />
<input onclick="Engine(1, this.value)" type="radio" value="c" />Panjang tabel <br />
<input onclick="Engine(1, this.value)" type="radio" value="d" />Lebar tabel <br />
<b>2. Element yang berfungsi untuk menampilkan teks apa adanya adalah ....</b><br />
<input onclick="Engine(2, this.value)" type="radio" value="a" />PRE <br />
<input onclick="Engine(2, this.value)" type="radio" value="b" />CENTER <br />
<input onclick="Engine(2, this.value)" type="radio" value="c" />BUTTON <br />
<input onclick="Engine(2, this.value)" type="radio" value="d" />HR <br />
<b>3. Element yang berfungsi untuk mengganti baris adalah ....</b><br />
<input onclick="Engine(3, this.value)" type="radio" value="a" />BR <br />
<input onclick="Engine(3, this.value)" type="radio" value="b" />P <br />
<input onclick="Engine(3, this.value)" type="radio" value="c" />I <br />
<input onclick="Engine(3, this.value)" type="radio" value="d" />U <br />
<b>4. Element yang berfungsi untuk mendefinisikan opsi pilihan pada from kontrol adalah ..... </b><br />
<input onclick="Engine(4, this.value)" type="radio" value="a" />Element Form <br />
<input onclick="Engine(4, this.value)" type="radio" value="b" />Element option <br />
<input onclick="Engine(4, this.value)" type="radio" value="c" />Element Select <br />
<input onclick="Engine(4, this.value)" type="radio" value="d" />Contoh Jawaban <br />
<b>5. Element table berfungsi untuk .........</b><br />
<input onclick="Engine(5, this.value)" type="radio" value="a" />Membuat Judul <br />
<input onclick="Engine(5, this.value)" type="radio" value="b" />membuat suatu data multidimensi yang terdiri atas kolom dan baris <br />
<input onclick="Engine(5, this.value)" type="radio" value="c" />membuat suatu data multidimensi yang terdiri atas kolom dan judul <br />
<input onclick="Engine(5, this.value)" type="radio" value="d" />membuat suatu data multidimensi yang terdiri atas kolom <br />
<b>6. WWW merupakan singkatan dari ....</b><br />
<input onclick="Engine(6, this.value)" type="radio" value="a" />World Web Wide<br />
<input onclick="Engine(6, this.value)" type="radio" value="b" />Web World Wide<br />
<input onclick="Engine(6, this.value)" type="radio" value="c" />World Wide Web<br />
<input onclick="Engine(6, this.value)" type="radio" value="d" />Wide World Web<br />
<b>7. Apa yang di maksud HTML :</b><br />
<input onclick="Engine(7, this.value)" type="radio" value="a" />Script untuk menyusun dokumen-dokumen web<br />
<input onclick="Engine(7, this.value)" type="radio" value="b" />Untuk menampilkan isi dokumen<br />
<input onclick="Engine(7, this.value)" type="radio" value="c" />Script untuk menyusun dokumen-dokumen<br />
<input onclick="Engine(7, this.value)" type="radio" value="d" />untuk mengeksekusi perintah-perintah<br />
<b>8. Di bawah ini adalah attribute Element table kecuali,...</b><br />
<input onclick="Engine(8, this.value)" type="radio" value="a" />Height<br />
<input onclick="Engine(8, this.value)" type="radio" value="b" />border<br />
<input onclick="Engine(8, this.value)" type="radio" value="c" />width<br />
<input onclick="Engine(8, this.value)" type="radio" value="d" />option<br />
<b>Element P berfungsi untuk :</b><br />
<input onclick="Engine(9, this.value)" type="radio" value="a" />Ganti garis<br />
<input onclick="Engine(9, this.value)" type="radio" value="b" />Ganti paragaf<br />
<input onclick="Engine(9, this.value)" type="radio" value="c" />Membuat header<br />
<input onclick="Engine(9, this.value)" type="radio" value="d" />Membuat tampilan tekt<br />
<b>10. Berikut ini adalah bentuk atribut Element TH kecuali ....</b><br />
<input onclick="Engine(10, this.value)" type="radio" value="a" />align<br />
<input onclick="Engine(10, this.value)" type="radio" value="b" />colspan<br />
<input onclick="Engine(10, this.value)" type="radio" value="c" />valign<br />
<input onclick="Engine(10, this.value)" type="radio" value="d" />circle<br />
<br />
<br />
<center>
<input onclick="NextLevel()" type="button" value="Soal Selanjutnya" />
</body>
<marquee bgcolor="pink" style="font-family: Arial; font-size:20px; color:#800C0C;">Belajar bahasa progaman web ternyata mudah juga </marquee>
</center>
</form>
hasilnya adalah :
Petunjuk: Jumlah poin untuk lanjut ke sesi berikut adalah 7 poin
0 komentar:
Posting Komentar