MCQS | Which of the following syntax is used to access all the items in an array?

Question:Which of the following syntax is used to access all the items in an array?

1.${array_name[*]}

2. ${array_name[@]}

3. ${array_name[$]}

4. Both A and B