
Unit 1 - Introduction to Kotlin (L2)[ID]
Authored by Widayat Prasetiyo
Computers
12th Grade
Used 14+ times
![Unit 1 - Introduction to Kotlin (L2)[ID]](https://cf.quizizz.com/img/studentpreview.webp)
AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Manakah dari deklarasi variabel berikut yang valid?
var hello: Int? = ""
String "hello" = hello
val hello = "hello"
hello: String = "hello"
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Ini dianggap sebagai praktik terbaik untuk mendeklarasikan variabel yang tidak akan berubah menggunakan var, bukan val.
Benar
Salah
3.
MULTIPLE SELECT QUESTION
30 sec • 5 pts
Manakah dari pernyataan berikut ini yang merupakan cara valid untuk mengupdate variabel?
total++
total - 1
total--
total = total + 1
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Di Kotlin, komentar boleh satu atau beberapa baris dan akan diabaikan oleh compiler.
Benar
Salah
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Manakah dari pilihan berikut ini yang bukan merupakan jenis data di Kotlin?
String
Decimal
Int
Boolean
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Float juga mewakili desimal, tetapi kurang akurat daripada Double.
Benar
Salah
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Di Kotlin, titik entri program adalah ___.
Pernyataan println()
Variabel val
fungsi main()
Pernyataan return
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?