Anda di halaman 1dari 4

10/28/22, 4:18 PM Pre Test 2: Attempt review

Home / My courses /
1BGGR191553K - GOLANG FOR BEGINNER /
Pertemuan 2 /
Pre Test 2

Started on Friday, 28 October 2022, 4:02 PM


State Finished
Completed on Friday, 28 October 2022, 4:11 PM
Time taken 8 mins 48 secs
Marks 14.00/15.00
Grade 9.33 out of 10.00 (93%)

Question 1 Fungsi konversi data yang digunakan untuk mengkonversi data dari tipe integer ke string adalah:
Correct

Mark 1.00 out of Select one:


1.00
a. strconv.ParseInt()

b. strconv.ItoA() 

c. strconv.Atoi()

d. strconv.FormatInt()

The correct answer is: strconv.ItoA()

Question 2 kata kunci yang digunakan untuk menghentikan program dengan menggunakan :
Correct

Mark 1.00 out of Select one:


1.00
a. defer

b. quit

c. system.exit

d. exit 

The correct answer is: exit

Question 3 contoh penggunaan variabel berikut nama1 := "Budi", merupakan penerapan dengan metode:
Correct

Mark 1.00 out of Select one:


1.00
a. Fungsi Variabel

b. Indentansi

c. type inference 

d. manifest typing

The correct answer is: type inference

https://kursusvmlepkom.gunadarma.ac.id/mod/quiz/review.php?attempt=905107&cmid=129391 1/4
10/28/22, 4:18 PM Pre Test 2: Attempt review

Question 4 Operator logika yang digunakan untuk menyamakan antara ruas kiri dan kanan adalah :
Incorrect

Mark 0.00 out of Select one:


1.00
a. || 

b. /

c. &&

d. !

The correct answer is: &&

Question 5 Pendeklarasian variabel yang diikuti oleh tipe data disebut dengan metode:
Correct

Mark 1.00 out of Select one:


1.00
a. manifest typing 

b. Fungsi Variabel

c. Indentansi

d. type inference

The correct answer is: manifest typing

Question 6 Pendeklarasian variabel yang tidak diikuti oleh tipe data disebut dengan metode:
Correct

Mark 1.00 out of Select one:


1.00
a. manifest typing

b. Indentansi

c. type inference 

d. Fungsi Variabel

The correct answer is: type inference

Question 7 Fungsi konversi data yang digunakan untuk mengkonversi data dari tipe float64 ke string adalah:
Correct

Mark 1.00 out of Select one:


1.00
a. strconv.Atoi()

b. strconv.FormatFloat() 

c. strconv.ParseInt()

d. strconv.ItoA()

The correct answer is: strconv.FormatFloat()

https://kursusvmlepkom.gunadarma.ac.id/mod/quiz/review.php?attempt=905107&cmid=129391 2/4
10/28/22, 4:18 PM Pre Test 2: Attempt review

Question 8 Tanda atau simbol yang digunakan dalam pendeklarasian variabel yang tidak dituliskan tipe datanya dengan
Correct menggunakan simbol:
Mark 1.00 out of
1.00 Select one:
a. ==

b. := 

c. !=

d. =

The correct answer is: :=

Question 9 Dalam deklarasi variabel dapat dilakukan dengan menggunakan kata var di depan nama variabel yang disebut dengan:
Correct

Mark 1.00 out of Select one:


1.00
a. Deklarasi Variabel Var 

b. Deklarasi Variabel manifest typing

c. Deklarasi Variabel type inference

d. Deklarasi Variabel Multi

The correct answer is: Deklarasi Variabel Var

Question 10 Tempat untuk menyimpan sebuah nilai disebut:


Correct

Mark 1.00 out of Select one:


1.00
a. Fungsi

b. Konstanta

c. Parameter

d. Variabel 

The correct answer is: Variabel

Question 11 Operator yang digunakan untuk mendapatkan sisa bagi adalah :


Correct

Mark 1.00 out of Select one:


1.00
a. =

b. -

c. =

d. % 

The correct answer is: %

https://kursusvmlepkom.gunadarma.ac.id/mod/quiz/review.php?attempt=905107&cmid=129391 3/4
10/28/22, 4:18 PM Pre Test 2: Attempt review

Question 12 Mengakhirkan eksekusi sebuah pernyataan dengan menggunakan :


Correct

Mark 1.00 out of Select one:


1.00
a. quit

b. system.exit

c. exit

d. defer 

The correct answer is: defer

Question 13 Simbol atau tanda yang digunakan untuk menampung nilai balik fungsi yang tidak digunakan dan isi variabel ini tidak
Correct ditampilkan adalah :
Mark 1.00 out of
1.00 Select one:
a. !=

b. -

c. _ 

d. ==

The correct answer is: _

Question 14 Fungsi konversi data yang digunakan untuk mengkonversi dari tipe string ke int adalah:
Correct

Mark 1.00 out of Select one:


1.00
a. strconv.ItoA()

b. strconv.FormatInt()

c. strconv.Atoi() 

d. strconv.ParseInt()

The correct answer is: strconv.Atoi()

Question 15 Jika deklarasi nama variabel lebih dari satu pada baris yang sama dan tipe data yang dideklarasikan juga sama, maka
Correct dapat dipisahkan dengan tanda atau simbol:
Mark 1.00 out of
1.00 Select one:
a. Titik

b. Titik Dua

c. Koma 

d. Single Quote

The correct answer is: Koma

◄ Materi Minggu 1 Jump to... Post Test 2 ►

https://kursusvmlepkom.gunadarma.ac.id/mod/quiz/review.php?attempt=905107&cmid=129391 4/4

Anda mungkin juga menyukai