GO! Quizz Zeriusz Day 9

Quiz
•
Information Technology (IT)
•
10th Grade
•
Hard
PO Bootcamp
Used 1+ times
FREE Resource
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
Latihan Soal 1_INFORMATIKA

Quiz
•
10th Grade
10 questions
Soal Evaluasi TIK (Perangkat Keras)

Quiz
•
9th - 12th Grade
10 questions
STRUKTUR DATA "ARRAY"

Quiz
•
10th Grade
10 questions
Fundamentos de Programación en Python

Quiz
•
6th Grade - University
10 questions
Post Test

Quiz
•
9th - 12th Grade
10 questions
Uji Pengetahuan Algoritma dan Pemrograman

Quiz
•
10th Grade
7 questions
List1

Quiz
•
10th Grade
5 questions
Uji Coba BK

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University