多项选择题Kotlin中,集合主要有?()

A.Iterable
B.Set
C.MutableSet
D.Map:key


您可能感兴趣的试卷

你可能感兴趣的试题

1.多项选择题Kotlin创建集合的方式有哪几种?()

A.Listlist=newArrayList();
B.valset=hashSetOf(1,7,53)
C.vallist=arrayListOf(1,7,53)
D.valmap=hashMapOf(1,7,53)

5.单项选择题修饰泛型函数正确的是()

A.funsingletonList(item:T):List{}
B.funsingletonList(item:T):List{/*……*/}
C.funsingletonList(item:):List{/*……*/}

6.单项选择题成员函数以点表示法调用正确的是?()

A.类名.方法名
B.类名
C.方法名
D.方法名.类名

7.单项选择题下面那个是成员函数声明正确的一个?()

A.ClassSample(){funfoo(){print("Foo")}}
B.ClassSample(){}
C.Funfoo(){print("Foo")}classSample(){}
D.Fun{print("Foo")}

8.单项选择题在调用函数时使用命名的函数参数中正确的是()

A.fun reformat(str: String, normalizeCase: Boolean = true, upperCaseFirstLetter: Boolean = true, divideByCamelHumps: Boolean = false, wordSeparator: Char = ' ') {} 
B.fun reformat(str: String, normalizeCase: Int = true, upperCaseFirstLetter: Boolean = true, divideByCamelHumps: Boolean = false, wordSeparator: Char = ' ') {/*……*/}    
C.fun reformat(str: String, normalizeCase: Boolean = true, upperCaseFirstLetter: String = true, divideByCamelHumps: Boolean = false, wordSeparator: Char = ' ') {/*……*/}    
D.fun reformat(str: String, normalizeCase: Boolean = true, upperCaseFirstLetter: Boolean = true, divideByCamelHumps: String = false, wordSeparator: Char = ' ') {/*……*/}

9.单项选择题调用成员函数使用点表示法()

A.Student().read()
B.Student().reader()
C.Student().writer()
D.Student().write()