
Quiz JavaScript Dasar - P1 24/07/25

Quiz
•
Information Technology (IT)
•
10th Grade
•
Hard
Naufal Rafizi
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Awalnya, JavaScript dikembangkan dengan tujuan utama untuk...
Merancang database sebuah website.
Menambah gaya pada halaman web.
Membuat website menjadi lebih interaktif dan "hidup".
Mengatur struktur konten halaman web.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Manakah dari pernyataan berikut yang tidak sesuai dengan aturan penamaan variabel dalam JavaScript?
Nama variabel dapat diawali dengan tanda dolar ($).
Nama variabel bersifat case sensitive, artinya huruf besar dan kecil dianggap berbeda.
Nama variabel tidak boleh diawali dengan angka.
Nama variabel dapat menggunakan spasi.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Metode yang paling disarankan untuk menyisipkan kode JavaScript ke dalam HTML adalah...
Menggunakan file JavaScript eksternal dan memanggilnya dengan tag .
Menulis kode langsung di dalam tag .
Menulis kode di dalam tag .
Menempatkan kode di dalam tag .
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Keyword const digunakan untuk mendeklarasikan variabel yang...
Nilainya dapat diubah-ubah.
Bernilai konstan dan tidak bisa diubah setelah diinisialisasi.
Hanya bisa digunakan untuk tipe data number.
Memiliki jangkauan global.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Tipe data yang merepresentasikan nilai "tidak ada nilai" atau variabel yang dideklarasikan tanpa diinisialisasi adalah...
Null
Undefined
Boolean
String
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Perhatikan kode berikut: let namaLengkap = "Budi Santoso"; Gaya penulisan pada nama variabel tersebut dikenal sebagai...
PascalCase
snake_case
kebab-case
CamelCase
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Untuk menampilkan data atau pesan ke console pada browser, perintah yang digunakan adalah...
alert()
document.write()
console.log()
window.print()
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
QUIZ PROFESI RPL

Quiz
•
10th Grade
12 questions
Algoritma dan Pemrograman

Quiz
•
9th - 12th Grade
10 questions
Soal Koding & Kecerdasan Artifisial untuk SMA/SMK

Quiz
•
10th Grade
10 questions
Dasar Koding dan Kecerdasan Artifisial

Quiz
•
10th Grade
10 questions
Dasar-Dasar Pemrograman

Quiz
•
10th Grade
10 questions
Pemrograman Python untuk Kelas X SMK

Quiz
•
10th Grade
10 questions
Quiz tentang Java

Quiz
•
9th - 12th Grade
15 questions
Asesmen Awal Berpikir Komputasional

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

Interactive video
•
10th - 12th Grade
21 questions
Lab Safety

Quiz
•
10th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade