Vidyalelo
Computer Science · Q245

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 245

Q245

What is the correct way to declare a variable of integer type in Kotlin?

A.
var i : Int = 42
Answer
B.
var i : int = 42
C.
let i = 42
D.
int i = 42

Answer: Option A

Solution

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