
Kuis Module Node.js
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Medium
Afika Rozzaq
Used 1+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Apa fungsi dari modul readline dalam Node.js?
Fungsi dari modul readline adalah untuk mengatur server web.
Fungsi dari modul readline adalah untuk mengelola database.
Fungsi dari modul readline adalah untuk mengirim email.
Fungsi dari modul readline adalah untuk membaca input dari aliran, memungkinkan interaksi pengguna.
2.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Bagaimana cara membuat modul lokal di Node.js?
Buat file JavaScript, ekspor dengan 'module.exports', dan impor dengan 'require'.
Buat file HTML dan ekspor dengan 'export default'.
Gunakan 'npm install' untuk membuat modul baru.
Impor modul dengan 'import' tanpa ekspor.
3.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Berikut adalah contoh penggunaan method writeFileSync yang benar:
fs.writeFileSync('data.txt', 'Halo Dunia')
fs.writeFileSync('data.txt', 'utf8')
fs.writeFileSync('Halo Dunia', 'data.txt')
fs.writeFileSync('data.txt')
4.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Jika kita ingin menggunakan chalk untuk menampilkan teks "Selamat Datang" dengan teks kuning dan background hijau, manakah yang benar?
chalk.green.bgYellow('Selamat Datang')
chalk.bgYellow.green('Selamat Datang')
chalk.bgGreen.yellow('Selamat Datang')
chalk.yellow.bgBlue('Selamat Datang')
5.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Parameter yang diperlukan oleh method isEmail pada modul validator adalah:
Alamat email dalam format integer
Alamat email dalam format string
Nomor telepon dalam format string
Nomor telepon dalam format integer
6.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Berikut adalah contoh penggunaan method isMobilePhone yang benar untuk memvalidasi nomor telepon di Indonesia:
validator.isMobilePhone('081234567890', 'id-ID')
validator.isMobilePhone('+6281234567890')
validator.isMobilePhone(81234567890, 'id-ID')
validator.isMobilePhone('081234567890')
7.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
Apa fungsi dari perintah npm init?
Menghapus modul dari proyek
Membuat file konfigurasi package.json
Menginstal modul pada proyek
Memperbarui semua modul yang terinstal
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
11 questions
Câu hỏi ôn tập HKII_Tin học 6
Quiz
•
8th Grade - Professio...
7 questions
Backup, Restore, and Recovery
Quiz
•
9th Grade - University
10 questions
Lesson 01 Unit 1 Excel 2019/365 MOAC
Quiz
•
9th - 12th Grade
15 questions
I.C.T
Quiz
•
10th - 12th Grade
12 questions
Chapter 6: BIOS Terms
Quiz
•
10th - 12th Grade
10 questions
Application Software
Quiz
•
11th Grade - University
15 questions
Attacks Threats & Vulnerabilities (C1)
Quiz
•
9th - 12th Grade
15 questions
Code.org Lesson 1-14
Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
