Skip to main content
Journey Uncommon Logo
JourneyUncommon
easyKotlindefault and named argumentsSingle-choice MCQ

Given the function below, what does this call print?

fun connect(host: String, port: Int = 80, secure: Boolean = false) = "$host:$port secure=$secure" println(connect("localhost", secure = true))