Search Header Logo

android1

Authored by Son Le

Computers

University

android1
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Tệp Kotlin được lưu bằng đuôi tệp nào?

kot

kt hoặc .kts

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Từ khoá nào dùng để xác định biến không thể thay đổi?

var

val

immutable

immutableVar

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kotlin có khả năng tương tác với ngôn ngữ lập trình Java không?

Có, ngôn ngữ này có khả năng tương tác

Không, ngôn ngữ này không có khả năng tương tác

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào sẽ trả về độ dài của chuỗi trong Kotlin?

str.length

length(str)

str.lengthOf

str.getLength()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lựa chọn nào sau đây được dùng để viết mã null-safe trong Kotlin?

Dãy

Lớp kín

Toán tử Elvis

Hàm Lambda

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Làm sao để tạo Arraylist trong Kotlin đúng cách?

val map = hashMapOf(1 to "one", 2 to "two", 3 to "three")

enum class Color {RED, GREEN, BLUE}

val set = hashSetOf(1, 2, 3)

val list = arrayListOf(1, 2, 3)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Các hàm trong Kotlin được tạo bằng từ khoá sau?

void

fun

function

def

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?

Discover more resources for Computers