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
6 questions
Quiz Pengetahuan Tipe Data

Quiz
•
10th Grade - University
7 questions
Lekcja 1.3

Quiz
•
4th Grade - University
10 questions
ICT BEL 4

Quiz
•
4th Grade - University
10 questions
REVIEW TIME

Quiz
•
9th Grade - University
10 questions
Basics of Network and Internet Safety

Quiz
•
10th Grade - University
10 questions
Pemrograman Dasar untuk Siswa Kelas 10

Quiz
•
10th Grade
10 questions
Središnji dio Javascript jezika i DOM

Quiz
•
9th - 12th Grade
5 questions
Kiểm tra kiến thức lập trình

Quiz
•
10th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Information Technology (IT)
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
10 questions
Impact of 9/11 and the War on Terror

Interactive video
•
10th - 12th Grade
21 questions
Lab Safety

Quiz
•
10th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
6 questions
Biography

Quiz
•
4th - 12th Grade