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
10 questions
Que me acuerdo de JvaScript

Quiz
•
12th Grade
9 questions
Lesson 1 - Webdev

Quiz
•
10th Grade - University
8 questions
JavaScript 12B

Quiz
•
12th Grade
10 questions
Evaluasi dan Refleksi - 2

Quiz
•
12th Grade
10 questions
Technical Terms - Hardware (A-Z) - Yahoo

Quiz
•
12th Grade
10 questions
Dasar Pemograman

Quiz
•
9th Grade
10 questions
ATIVIDADE 4 2° ANO SENAC

Quiz
•
11th Grade
10 questions
2° ANO SENAC - ATIVIDADE 3

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade