
ASESMEN SUMATIF JAVASCRIPT
Authored by sandatya sandatya
Computers
9th - 12th Grade
Used 13+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
LATIHAN UJIAN SEKOLAH KOMPETENSI TKJ
Quiz
•
1st - 10th Grade
10 questions
Kuis Refleksi 2
Quiz
•
9th - 12th Grade
10 questions
Ulangan Harian 1 TIK X MIPA 1
Quiz
•
10th Grade
10 questions
DNS dan Web server
Quiz
•
11th Grade
10 questions
Introducción a los lenguajes de programación
Quiz
•
10th - 11th Grade
10 questions
Python Symbol Puzzle Quiz - part 1
Quiz
•
12th Grade
10 questions
scratch quiz
Quiz
•
1st Grade - University
10 questions
Quiz 5 - Excel
Quiz
•
11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade