
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
21 questions
Codean JS Synchronous dan Asynchronous

Quiz
•
University
22 questions
Questionário 2

Quiz
•
University
24 questions
Kuis REact API AxiosFront-End

Quiz
•
University
28 questions
Programming Fundamentals Quiz

Quiz
•
University
30 questions
Loops, enums,arrays,conditional statements, variables

Quiz
•
University
20 questions
KSN INFORMATIKA

Quiz
•
11th Grade - University
20 questions
PTS Informatika Semester 2 2024-2025

Quiz
•
10th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University