Vidyalelo
Computer Science · Q207

Kotlin Programming MCQ for Competitive Exams, Interviews, and Certifications

Engineering and GATE · Computer Science · question 207

Q207

How can you create a variable with the floating number 2.8?

A.
num = 2.8 float
B.
val num = 2.8
Answer
C.
float num = 2.8
D.
double num = 2.8

Answer: Option B

Solution

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