Complete the code to check if the number is equal to 10.
if ($number [1] 10) { Write-Output "Equal" }
The -eq operator checks if two values are equal in PowerShell.
Complete the code to check if the value is less than 5.
if ($value [1] 5) { Write-Output "Less than 5" }
The -lt operator means 'less than' in PowerShell.
Fix the error in the code to check if $a is not equal to $b.
if ($a [1] $b) { Write-Output "Not equal" }
The -ne operator means 'not equal' in PowerShell.
Fill both blanks to check if $x is greater than 5 and less than 10.
if (($x [1] 5) -and ($x [2] 10)) { Write-Output "Between 5 and 10" }
-gt means greater than, and -lt means less than. Together they check if $x is between 5 and 10.
Fill all three blanks to create a dictionary with keys as uppercase words and values as their lengths if length is greater than 3.
$result = @{}; foreach ($word in $words) { if (([1] = $word.ToUpper()) -and ($word.Length [2] 3)) { $result[[3]] = $word.Length } }We assign the uppercase word to $key (blank 1), check if length is greater than 3 (blank 2), and use $key as the dictionary key (blank 3).