Multiple choice technology

What will be the output of the below Script? $Array = @() $TempValue = "This is" , "a sample" , "PowerShell" , "Script" $Value =[string]::join(':', $TempValue) $Array = $Array + $Value $Array

  1. "This is" , "a sample" , "PowerShell" , "Script"

  2. This is ,a sample ,PowerShell ,Script

  3. This is:a sample:PowerShell:Script

  4. This is a sample PowerShell Script

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The string::join() method concatenates array elements using the specified separator (:). Joining This is, a sample, PowerShell, Script with colon separator produces This is:a sample:PowerShell:Script. The final $Array outputs this single string value.