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

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
AIJ Test 1 Firewall Jaringan
Quiz
•
9th - 12th Grade
10 questions
Soal BAB V PemWeb
Quiz
•
12th Grade
10 questions
Threats and Social Engineering
Quiz
•
9th - 10th Grade
10 questions
QUIZ_JOB PROFIL TJKT
Quiz
•
10th Grade
10 questions
UTS VOIP
Quiz
•
12th Grade
10 questions
Mid semester kelas XI RPL Konsep pemodelan berorientasi objek
Quiz
•
11th Grade
10 questions
Blinking LED
Quiz
•
12th Grade
10 questions
Google Docs - Tables
Quiz
•
9th - 10th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade