Multiple choice technology

Which among the below options are correctly declaring a Two Dimensional Array in PowerShell?

  1. $array2 = New-Object 'object[,]' 10,20
  2. $array1[2][0]
  3. $array2[9,16]
  4. $array2[4,8] = 'Hello,Test'
Reveal answer Fill a bubble to check yourself
A,C,D Correct answer
Explanation

PowerShell supports multi-dimensional arrays using the 'object[,]' type notation. Option A correctly declares a 2D array using New-Object with dimensions 10,20. Options C and D correctly access and assign values using comma-separated indices [row,column]. Option B is incorrect because PowerShell 2D arrays use [x,y] syntax, not [x][y] nested indexing (which would be for jagged arrays).