GO4! Quiz Zeriuz Day 13
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
PO Bootcamp
Used 1+ times
FREE Resource
Enhance your content in a minute
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Goroutine adalah unit eksekusi ringan yang berjalan secara paralel dengan fungsi lainnya dalam program Go.
Benar
Salah
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang terjadi jika kita menjalankan fungsi sebagai goroutine tanpa mekanisme sinkronisasi?
Fungsi akan otomatis menunggu selesai
Program akan error
Fungsi bisa selesai setelah program utama berakhir
Fungsi akan berjalan secara sekuensial
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Channel digunakan untuk menyimpan data secara permanen dalam memori.
Benar
Salah
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Fungsi sync.WaitGroup digunakan untuk:
Mengakses variabel global
Menghitung jumlah goroutine yang selesai
Menyinkronkan data ke file
Menghindari deadlock
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang akan terjadi jika WaitGroup.Done() tidak dipanggil dalam sebuah goroutine?
Tidak berpengaruh
Program tetap selesai
Program akan mengalami deadlock atau hang
Channel akan tertutup otomatis
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Mutex digunakan untuk mencegah dua goroutine mengakses data bersama secara bersamaan.
Benar
Salah
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Metode apa yang digunakan untuk mengunci dan membuka akses dengan sync.Mutex?
Lock() dan Wait()
Lock() dan Unlock()
Wait() dan Done()
Close() dan Open()
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Manakah yang bukan kelebihan dari goroutine?
Ringan dan cepat dibanding thread
Dijalankan oleh scheduler milik Go sendiri
Membutuhkan banyak resource OS
Cocok untuk task paralel dan concurrent
Similar Resources on Wayground
6 questions
halo test
Quiz
•
5th Grade - Professio...
10 questions
C++Quiz#1
Quiz
•
Professional Development
10 questions
Soal SKD
Quiz
•
University - Professi...
12 questions
eContent Development Tools
Quiz
•
Professional Development
10 questions
Quiz Rapat Kerja 2024
Quiz
•
Professional Development
10 questions
Seberapa Paham Anda akan Aplikasi Smartphone ?
Quiz
•
Professional Development
10 questions
KUIS CANVA
Quiz
•
Professional Development
12 questions
DECI - Week 6 - round
Quiz
•
Professional Development
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
