Kuis Module Node.js

Kuis Module Node.js

11th Grade

10 Qs

quiz-placeholder

Similar activities

Python Reading files

Python Reading files

9th - 12th Grade

9 Qs

Unit 6:  Quality Control

Unit 6: Quality Control

10th - 12th Grade

15 Qs

Python Final Assessment

Python Final Assessment

4th - 12th Grade

10 Qs

kuis aplikasi mobile

kuis aplikasi mobile

11th Grade

15 Qs

Chapter 6 Quiz

Chapter 6 Quiz

9th - 12th Grade

10 Qs

Working with Sound and Video

Working with Sound and Video

11th Grade

10 Qs

Quiz Firebase + React

Quiz Firebase + React

11th Grade

15 Qs

9. Python (Модули, файлы)

9. Python (Модули, файлы)

5th - 11th Grade

13 Qs

Kuis Module Node.js

Kuis Module Node.js

Assessment

Quiz

Computers

11th Grade

Medium

Created by

Afika Rozzaq

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?