Kotlin Basic Programs for Beginners
Kotlin Basic Programs for Beginners - Important Points
6. | What is the output of the following Kotlin code? fun main() { |
---|
A. [1, 2, 3, 4, 5]
B. [2, 4, 6, 8, 10]
C. [2, 4, 6, 8, 10, 12]
D. Compilation error
View Answer Discuss Work SpaceAnswer: option b
Explanation:
7. | What is the output of the following Kotlin code? fun main() { |
---|
A. [1, 3, 5]
B. [2, 4]
C. [1, 2, 3, 4, 5]
D. Compilation error
View Answer Discuss Work SpaceAnswer: option b
Explanation:
8. | What is the output of the following Kotlin code? fun main() { |
---|
A. ["hello,", "world"]
B. [hello,, world]
C. [hello, world]
D. Compilation error
View Answer Discuss Work SpaceAnswer: option b
Explanation:
9. | What is the output of the following Kotlin code? fun main() { |
---|
A. 1
B. 15
C. 30
D. Compilation error
View Answer Discuss Work SpaceAnswer: option b
Explanation:
10. | What is the output of the following Kotlin code? fun main() { |
---|
A. 1
B. 15
C. 30
D. Compilation error
View Answer Discuss Work SpaceAnswer: option b
Explanation: