Search Header Logo

Basic Programming Kotlin

Authored by Arif Faizin

Computers

Professional Development

Used 152+ times

Basic Programming Kotlin
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which keyword used to create a mutable variable?

var

val

const

mutable

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which is the right declaration to make a variable with the Character data type?

val char = 'ABC'

val char = "A"

val char = 'A'

val char = A

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which the right code to declare nullable variable in Kotlin?

val text: String = null

val text: String? = null

val text: nullable = null

val text: String

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Elvis operator keyword?

?:

??

:?

?.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How do you make the range from a to b?

a in b

a_b

a to b

a..b

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What value is 10 until 12

10 11 12

10 11

11 12

All is wrong!

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

When you use a data class, what functions will the compiler automatically provide?

paste(), toDouble(), notEquals()

toString(), cut(), dan isEmpty()

equals(), copy, dan toInt()

copy(), equals, dan toString()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?