Kotlin Basic Programs for Beginners
Kotlin Basic Programs for Beginners - Important Points
16. | What is the output of the following Kotlin code? fun main() { |
---|
A. 2
B. 4
C. null
D. Compilation error
View Answer Discuss Work SpaceAnswer: option b
Explanation:
17. | What is the output of the following Kotlin code? fun main() { |
---|
A. 1
B. 2
C. 3
D. Compilation error
View Answer Discuss Work SpaceAnswer: option b
Explanation:
18. | What is the output of the following Kotlin code? fun main() { |
---|
A. 1
B. 5
C. null
D. Compilation error
View Answer Discuss Work SpaceAnswer: option b
Explanation:
19. | What is the output of the following Kotlin code? fun main() { |
---|
A. 1
B. 5
C. null
D. Compilation error
View Answer Discuss Work SpaceAnswer: option a
Explanation:
20. | What is the output of the following Kotlin code? fun main() { |
---|
A. 10
B. 15
C. 20
D. Compilation error
View Answer Discuss Work SpaceAnswer: option b
Explanation: