Complete the code to create an empty hash table in PowerShell.
$hashTable = [1]In PowerShell, an empty hash table is created using @{}.
Complete the code to add a key-value pair 'Name' = 'Alice' to the hash table.
$hashTable = @{}
$hashTable.[1] = 'Alice'To add a key-value pair, use the key name as a property: $hashTable.Name = 'Alice'.
Fix the error in the code to retrieve the value for key 'Age' from the hash table.
$age = $hashTable[1]'Age'
To access a hash table value by key, use square brackets with the key as a string: $hashTable['Age'].
Fill both blanks to create a hash table with keys 'City' and 'Country' and values 'Paris' and 'France'.
$location = @[1] = '[2]'}
To create a hash table with one key-value pair, use @{'City' = 'Paris'}. Here we fill the first blank with the key and the second with the value.
Fill all three blanks to create a hash table with keys 'Fruit' and 'Color' and values 'Apple' and 'Red'.
$fruitInfo = @[1] = '[2]'; [3] = 'Red'}
The hash table has two key-value pairs separated by semicolons. The first key is 'Fruit' with value 'Apple', the second key is 'Color' with value 'Red'.