Apa fungsi dari modul readline dalam Node.js?

Kuis Module Node.js

Quiz
•
Computers
•
11th Grade
•
Medium
Afika Rozzaq
Used 1+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
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
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Programming - Basic File Handling Operations

Quiz
•
3rd - 11th Grade
10 questions
Python Basic files

Quiz
•
10th - 12th Grade
15 questions
Unit 6: Quality Control

Quiz
•
10th - 12th Grade
12 questions
GCSE Computing Flash Quiz

Quiz
•
10th - 11th Grade
14 questions
INFORMATIKA

Quiz
•
10th - 12th Grade
15 questions
Teknologi Aplikasi Web Server

Quiz
•
11th Grade
14 questions
WJEC ICT - Chapter 1 - Cloud Storage

Quiz
•
10th Grade - University
10 questions
AP Computer Science Principles Unit 3 Review

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
10 questions
Right Triangles: Pythagorean Theorem and Trig

Quiz
•
11th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade
10 questions
GPA Lesson

Lesson
•
9th - 12th Grade
15 questions
SMART Goals

Quiz
•
8th - 12th Grade