Bird
0
0

Which statement about Kotlin arrays is TRUE?

hard📝 Conceptual Q10 of 15
Kotlin - Collections Fundamentals
Which statement about Kotlin arrays is TRUE?
AKotlin arrays are fixed size but elements can be modified
BArray size in Kotlin can be changed dynamically after creation
CArrays in Kotlin are immutable and cannot be changed after creation
DKotlin does not support arrays, only lists
Step-by-Step Solution
Solution:
  1. Step 1: Understand Kotlin array mutability

    Arrays have fixed size but their elements can be changed.
  2. Step 2: Evaluate each option

    The true statement is that Kotlin arrays are fixed size but elements can be modified. Size cannot be changed dynamically after creation, arrays are not immutable as elements can be changed, and Kotlin does support arrays.
  3. Final Answer:

    Kotlin arrays are fixed size but elements can be modified -> Option A
  4. Quick Check:

    Array size fixed, elements mutable = Kotlin arrays are fixed size but elements can be modified [OK]
Quick Trick: Arrays have fixed size but mutable elements [OK]
Common Mistakes:
MISTAKES
  • Thinking arrays are resizable
  • Confusing immutability of elements
  • Believing Kotlin lacks arrays

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kotlin Quizzes