Study

Every path will lead to LEARN & ASK

  •   0%
  •  0     0     0

  • B
  • D
  • D
  • 9. In Kotlin, what’s the issue with using Array<T> instead of List<T> in most cases? A. Array cannot hold primitive types B. Arrays are mutable and not type-safe for covariance C. Arrays auto-resize inefficiently D. Arrays are immutable
    B
  • B
  • C
  • A
  • 10. What’s a common issue with shallow copying of arrays? A. It always duplicates deeply nested data
B. Modifying one array can unexpectedly affect the other if elements are references
C. It makes arrays immutable
D. increases performance
    B
  • D
  • B
  • 7. What issue may occur if multiple threads modify the same array concurrently without synchronization? A. Array auto-sorts itself B. Race conditions leading to corrupted data C. Automatic resizing by system D. Guaranteed performance impro
    B
  • 8. In JavaScript, what is a common pitfall with delete arr[index]? A. It throws an error B. It removes the element and shifts all others C. It leaves a hole (empty slot) in the array D. It resets the array
    C
  • C
  • D
  • C
  • A
  • C
  • D
  • C
  • 6. What problem occurs if you use a fixed-size array when you need a dynamic collection? |  A. Memory leak | B. Array resizing errors | C. Index overflow or wasted memory | D. Thread starvation
    C
  • B
  • A
  • C
  • B
  • D
  • A
  • B
  • B