GO! Quizz Zeriusz Day 9
Quiz
•
Information Technology (IT)
•
10th Grade
•
Hard
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
Apa yang terjadi ketika Anda menggunakan operator & di Go?
Mengakses nilai dari pointer
Membuat salinan dari nilai
Mendapatkan alamat memori dari variabel
Menghapus data di memori
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Di Go, bagaimana cara mendefinisikan sebuah struct?
struct MyStruct { int a; int b; }
class MyStruct { int a; int b; }
type MyStruct struct { a int; b int }
MyStruct -> struct { a int; b int }
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa perbedaan antara pointer dan reference di Go?
Pointer menunjuk ke alamat memori, reference menunjuk ke objek langsung
Pointer digunakan untuk array, reference digunakan untuk map
Tidak ada reference di Go, hanya ada pointer
Reference lebih cepat daripada pointer di Go
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara mendeklarasikan method untuk struct di Go?
func (self MyStruct) MyMethod() {}
method MyStruct.MyMethod() {}
def MyStruct.MyMethod(self) {}
func MyStruct.Method(self) {}
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa yang akan terjadi jika Anda mengubah nilai melalui pointer di Go?
Nilai asli dari variabel yang ditunjuk akan berubah
Nilai pointer akan berubah
Tidak ada yang berubah
. Pointer akan dihapus dari memor
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Apa perbedaan utama antara method dan fungsi biasa di Go?
Method bisa dipanggil tanpa objek, fungsi biasa tidak
Method memiliki receiver yang menunjukkan objek yang dioperasikan
Method hanya bisa digunakan dengan pointer
Tidak ada perbedaan
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Bagaimana cara membuat pointer ke struct di Go?
ptr := &MyStruct{}
ptr := MyStruct{}
ptr := &struct(MyStruct)
ptr := new MyStruct
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Di Go, apa nama receiver yang umum digunakan untuk method dalam struct?
this
self
it
Nama singkatan dari struct, seperti s atau t
Similar Resources on Wayground
10 questions
Մաքուր կոդ
Quiz
•
9th - 12th Grade
10 questions
Pseudocode Revision Quiz
Quiz
•
10th Grade
10 questions
Quiz in ICT 9
Quiz
•
9th - 12th Grade
10 questions
AP XI Pertemuan 12
Quiz
•
9th - 12th Grade
10 questions
Grade 10 bilin- Databases
Quiz
•
10th Grade
12 questions
Word Lesson 1 Quiz
Quiz
•
10th Grade
10 questions
QUIZ PROFESI RPL
Quiz
•
10th Grade
10 questions
Animation Techniques Quiz
Quiz
•
10th Grade - University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
20 questions
Halloween movies trivia
Quiz
•
7th - 12th Grade
15 questions
Halloween Characters
Quiz
•
7th - 12th Grade
10 questions
Halloween Movies Trivia
Quiz
•
5th Grade - University
10 questions
Halloween Trivia Challenge
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
14 questions
Halloween Fun
Quiz
•
2nd - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
