Kotlin Basics
Kotlin Basics - Important Points
21. | What is the output of the following code? fun main() { |
---|
A. [1, 2, 3]
B. [2, 4, 6]
C. [1, 2, 3, 2, 4, 6]
D. This code will not compile.
View Answer Discuss Work SpaceAnswer: option b
Explanation:
22. | What is the output of the following code? fun main() { |
---|
A. 0
B. -1
C. null
D. This
View Answer Discuss Work SpaceAnswer: option b
Explanation:
23. | What is the output of the following code? fun main() { |
---|
A. [1, 2, 3, 4, 5]
B. [1, 3, 5]
C. [2, 4]
D. This code will not compile.
View Answer Discuss Work SpaceAnswer: option b
Explanation:
24. | What is the output of the following code? fun main() { |
---|
A. 0
B. 5
C. null
D. This code will not compile.
View Answer Discuss Work SpaceAnswer: option b
Explanation:
25. | What is the output of the following code? fun main() { |
---|
A. [1, 3, 5]
B. [2, 4]
C. [1, 2, 3, 4, 5]
D. This code will not compile.
View Answer Discuss Work SpaceAnswer: option b
Explanation: