ASESMEN SUMATIF JAVASCRIPT

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
sandatya sandatya
Used 13+ times
FREE Resource
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Manakah output yang tepat dari kode berikut?
let myVariable = 12;
myVariable = 30;
myVariable = 5;
console.log(myVariable);
12
30
5
error
2.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Perhatikan kode berikut:
const stock = 0;
const milkNeeded = 25;
if (stock > milkNeeded) {
stock = stock - milkNeeded;
console.log('Processing your order...');
} else {
console.log('Out of Stock!');
}
console.log('Thank you');
Out of Stock!
Thank you
Processing your order...
Thank you
Out of Stock!
Processing your order...
3.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Perhatikan potongan kode berikut:
const capital = {
"Jakarta": "Indonesia",
"London": "England",
"Tokyo": "Japan"
}
capital["New Delhi"] = "Indonesia";
console.log(capital["Indonesia"]);
Ketika kode di atas dijalankan, maka outputnya adalah...
Jakarta
India
undefined
Error
4.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Diberikan sejumlah elemen yang harus disimpan secara berurutan. Manakah struktur data yang akan Anda gunakan?
Map
Object
Array
Set
5.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
Perhatikan kode berikut:
function calculate(value) {
return value < 2 ? value : (calculate(value - 1) + calculate(value - 2));
}
console.log(calculate(3));
Jika kode di atas dijalankan, maka manakah hasilnya?
1
2
3
4
Similar Resources on Wayground
7 questions
CSS/ JavaScript

Quiz
•
10th Grade
10 questions
Kuis Informatika kelas 9

Quiz
•
9th Grade
10 questions
UKIR DIVISI PORGRAMMING

Quiz
•
9th - 12th Grade
9 questions
U3: [Assess] L14-L17 Code.org

Quiz
•
9th - 12th Grade
9 questions
JavaScript

Quiz
•
10th - 12th Grade
9 questions
Quiz de JavaScript

Quiz
•
9th - 12th Grade
10 questions
Perangkat Keras Komputer

Quiz
•
12th Grade
10 questions
LUA Test

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade