
Responsi JavaScript

Quiz
•
Information Technology (IT)
•
University
•
Hard
Merly Purnama
Used 3+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 4 pts
Dalam konteks paradigma pemrograman JavaScript, manakah pernyataan yang paling tepat?
JavaScript hanya mendukung pemrograman berorientasi objek
JavaScript hanya mendukung pemrograman fungsional dan imperatif
JavaScript mendukung paradigma imperatif, fungsional, dan berorientasi objek secara bersamaan
JavaScript hanya dapat menggunakan satu paradigma dalam satu proyek
JavaScript tidak mendukung paradigma pemrograman apapun
2.
MULTIPLE CHOICE QUESTION
1 min • 4 pts
let x = 5;
let y = "5";
console.log(x == y);
console.log(x === y);
Output yang dihasilkan adalah
true, true
false, false
true, false
false, true
error
3.
MULTIPLE CHOICE QUESTION
1 min • 4 pts
Dalam konteks operator bitwise JavaScript, apakah hasil dari operasi berikut:
let a = 5; // 101 dalam biner
let b = 3; // 011 dalam biner
console.log(a & b);
console.log(a | b);
console.log(a ^ b);
1, 7, 6
1, 7, 2
2, 6, 4
3, 5, 2
0, 8, 8
4.
MULTIPLE CHOICE QUESTION
1 min • 4 pts
Manakah pernyataan yang benar tentang penggunaan 'var', 'let', dan variabel tanpa keyword di JavaScript?
Variabel yang dideklarasikan dengan 'var' memiliki block scope
Variabel yang dideklarasikan tanpa keyword selalu bersifat lokal
'let' dan 'var' memiliki perilaku hoisting yang sama
'let' memiliki block scope dan tidak dapat dideklarasikan ulang dalam scope yang sama
Semua variabel di JavaScript bersifat global scope
5.
MULTIPLE CHOICE QUESTION
1 min • 4 pts
let arr = [1, 2, 3, 4, 5];
arr.forEach((num, index, array) => {
array[index] = num * 2;
if(index === 1) array.push(10);
});
console.log(arr);
Output yang dihasilkan adalah
[2, 4, 6, 8, 10]
[2, 4, 6, 8, 10, 10]
[1, 2, 3, 4, 5, 10]
[2, 4, 6, 8, 5]
Error: Cannot modify array during iteration
6.
MULTIPLE CHOICE QUESTION
1 min • 4 pts
Dalam konteks operator ternary bersarang, apakah output dari kode berikut:
let score = 75;
let result = score >= 80 ? "A" :
score >= 70 ? "B" :
score >= 60 ? "C" : "D";
console.log(result);
A
B
C
D
undefined
7.
MULTIPLE CHOICE QUESTION
1 min • 4 pts
let i = 0;
do {
if(i === 3) continue;
console.log(i);
i++;
} while(i < 5);
Apa yang terjadi saat kode ini dijalankan?
Mencetak 0, 1, 2, 4
Mencetak 0, 1, 2, 3, 4
Infinite loop
Mencetak 0, 1, 2
Error
Create a free account and access millions of resources
Similar Resources on Wayground
28 questions
Prueba Diagnóstica de Analisis y Diseño de Sistemas

Quiz
•
University
20 questions
ООП квест тест

Quiz
•
University
25 questions
Seatwork #4

Quiz
•
12th Grade - University
20 questions
JavaScript Quiz

Quiz
•
University
21 questions
Data Structure Quiz

Quiz
•
University
20 questions
Web_FE_BASIC_SS16

Quiz
•
University
20 questions
PAM - Bahasa Pemrograman Aplikasi Web

Quiz
•
University
20 questions
FIRST ROUND BINGO

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University