單項選擇題在調(diào)用函數(shù)時使用命名的函數(shù)參數(shù)中正確的是()

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 = ' ') {/*……*/}


您可能感興趣的試卷

你可能感興趣的試題

1.單項選擇題調(diào)用成員函數(shù)使用點表示法()

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

3.單項選擇題調(diào)用函數(shù)使用傳統(tǒng)的方法正確的是()

A.valresult=double()
B.valresult=String(2)
C.valresult=double(null)
D.valresult=double(2)

4.單項選擇題在Kotlin中選擇語句是哪個?()

A.When
B.Whne
C.What
D.Switch

5.單項選擇題Kotlin中的函數(shù)使用()關(guān)鍵字聲明?

A.fun
B.void
C.ublic
D.rivate