单项选择题Kotlin中哪个关键字用于声明一个开放类()
A.open
B.public
C.class
D.external
您可能感兴趣的试卷
你可能感兴趣的试题
1.单项选择题Kotlin中类成员默认是什么访问权限()
A.public
B.private
C.protected
D.internal
2.单项选择题Kotlin中使用哪个关键字来创建一个类()
A.class
B.type
C.struct
D.model
3.单项选择题Kotlin中哪个循环可以用来遍历区间()
A.for-in
B.while
C.do-while
D.foreach
4.单项选择题Kotlin中表示一个区间的语法是什么()
A.[start..end]
B.start..end
C.(start,end)
D.start to end
5.单项选择题Kotlin中使用哪个关键字来实现条件判断()
A.if
B.switch
C.case
D.when
6.单项选择题Kotlin中,哪个类表示单精度浮点型()
A.int
B.Integer
C.Float
D.double
7.单项选择题Kotlin中定义函数时,如果函数体只有一行代码,可以省略哪个关键字()
A.if
B.else
C.return
D.var
8.单项选择题在Kotlin中,使用哪个关键字声明不可变变量()
A.val
B.var
C.const
D.final
9.单项选择题Kotlin与Java的兼容性主要得益于什么()
A.Kotlin编译器
B.Java虚拟机
C.IntelliJ IDEA
D.Android Studio
10.单项选择题Kotlin在哪一年成为Android开发的一级语言()
A.2016
B.2017
C.2018
D.2019
最新试题
在HomeViewModel中,TIMEOUT_MILLIS的作用是什么()
题型:单项选择题
在Android Studio中,可以通过Tools菜单下的SDK Manager来管理SDK版本。
题型:判断题
Room是在哪个数据库基础上构建的抽象层()
题型:单项选择题
以下哪个是AppViewModelProvider的作用()
题型:单项选择题
创建实体类时,哪个注解用来标记数据库实体类()
题型:单项选择题
在WorkManager中,哪个方法用于获取工作信息()
题型:单项选择题
以下哪个字符串资源ID用于播放音频的按钮文本()
题型:单项选择题
在Room中,哪个注解用来定义更复杂的数据库操作()
题型:单项选择题
在WorkManager中,哪个方法用于取消工作()
题型:单项选择题
在ItemEntryViewModel中,哪个函数用于将商品插入到Room数据库中()
题型:单项选择题