Vidyalelo
Computer Science · Q244

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 244

Q244

Which is a valid function declaration in Kotlin?

A.
fun sum(a: Int, b: Int): Int
Answer
B.
int sum(a: Int, b: Int)
C.
int sum(int a, int b)
D.
function sum(a: Int, b: Int): Int

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board