
Responsi JavaScript
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Hard
Merly Purnama
Used 3+ times
FREE Resource
Enhance your content in a minute
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
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
20 questions
quiziz 4 sumber media 2sda5
Quiz
•
University
20 questions
Informatika
Quiz
•
8th Grade - University
20 questions
Diagnostico sobre Programación Orientada a Objetos
Quiz
•
University
20 questions
Quizz Informatika Analisis Data Kelas 9
Quiz
•
9th Grade - University
20 questions
Ktra thường xuyên Tin 11
Quiz
•
11th Grade - University
20 questions
Pre parcial 1
Quiz
•
University
20 questions
BÀI KIỂM TRA 15 PHÚT - Môn Tin Học 10 - HK2-PYTHON
Quiz
•
10th Grade - University
21 questions
7-PAS Scratch
Quiz
•
7th Grade - University
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
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
