Explanation:The [[ operator can also use named indices so that you don’t have to remember the exact ordering of every element of the list. 2. Point out the correct statement :
A. You can also use the $ operator to extract elements by name
B. $ operator can be used with computed indices
C. The [[ operator can only be used with literal names
D. All of the mentioned
Answer:A
Explanation:The [[ operator can also use named indices so that you don’t have to remember the exact ordering of every element of the list. 2. Point out the correct statement :
A. You can also use the $ operator to extract elements by name B. $ operator can be used with computed indices C. The [[ operator can only be used with literal names D. All of the mentioned
Explanation:You don’t need the quotes when you use the $ operator. 3. What would be the output of the following code ?