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
5 questions
Penggunaan Tipe data, Identifier dan Operator

Quiz
•
10th Grade
11 questions
ОГЭ 4 урок. Системы счисления и типы данных.

Quiz
•
10th Grade
6 questions
Quiz Pengetahuan Tipe Data

Quiz
•
10th Grade - University
10 questions
Soal Dasar Bahasa C kelas XI

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

Quiz
•
9th - 12th Grade
10 questions
Informatika_Sistem Komputer

Quiz
•
10th Grade
7 questions
Lekcja 1.3

Quiz
•
4th Grade - University
10 questions
Quizzi bài 29 Tin học 10

Quiz
•
10th Grade - University
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Information Technology (IT)
40 questions
Algebra Review Topics

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

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
10 questions
Characteristics of Life

Quiz
•
9th - 10th Grade
10 questions
Essential Lab Safety Practices

Interactive video
•
6th - 10th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade