Arrays interview questions

15 real Arrays questions from the Bash bank, as asked in Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd — free to start.

1. What is Indexed array?

Junior
  1. A.the exclamation-prefixed brace subscript form that expands to the set of indices or string keys present in a collection
  2. B.the hash-prefixed brace form that reports how many elements a collection currently holds rather than its contents
  3. C.the subscript-at form inside double quotes that yields every member as a distinct word, mirroring the safe all-arguments expansion
  4. D.an ordered collection addressed by integer subscripts starting at zero, declared with parenthesized space-separated elements
Reveal the answer + AI explanation — free account

2. Which term means: "an ordered collection addressed by integer subscripts starting at zero, declared with parenthesized space-separated elements"?

Junior
  1. A.Array expansion to elements
  2. B.Indexed array
  3. C.Array length expansion
  4. D.Array key listing
Reveal the answer + AI explanation — free account

3. Which statement is correct?

Junior
  1. A.Indexed array — the subscript-at form inside double quotes that yields every member as a distinct word, mirroring the safe all-arguments expansion
  2. B.Indexed array — the hash-prefixed brace form that reports how many elements a collection currently holds rather than its contents
  3. C.Indexed array — an ordered collection addressed by integer subscripts starting at zero, declared with parenthesized space-separated elements
  4. D.Indexed array — the exclamation-prefixed brace subscript form that expands to the set of indices or string keys present in a collection
Reveal the answer + AI explanation — free account

4. What is Associative array?

Mid
  1. A.the exclamation-prefixed brace subscript form that expands to the set of indices or string keys present in a collection
  2. B.a key-value collection indexed by arbitrary strings, which must be declared explicitly with a capital-A declare flag
  3. C.the subscript-at form inside double quotes that yields every member as a distinct word, mirroring the safe all-arguments expansion
  4. D.an ordered collection addressed by integer subscripts starting at zero, declared with parenthesized space-separated elements
Reveal the answer + AI explanation — free account

5. Which term means: "a key-value collection indexed by arbitrary strings, which must be declared explicitly with a capital-A declare flag"?

Mid
  1. A.Associative array
  2. B.Array expansion to elements
  3. C.Indexed array
  4. D.Array length expansion
Reveal the answer + AI explanation — free account

6. Which statement is correct?

Mid
  1. A.Associative array — the subscript-at form inside double quotes that yields every member as a distinct word, mirroring the safe all-arguments expansion
  2. B.Associative array — a key-value collection indexed by arbitrary strings, which must be declared explicitly with a capital-A declare flag
  3. C.Associative array — the exclamation-prefixed brace subscript form that expands to the set of indices or string keys present in a collection
  4. D.Associative array — an ordered collection addressed by integer subscripts starting at zero, declared with parenthesized space-separated elements
Reveal the answer + AI explanation — free account

7. What is Array expansion to elements?

Mid
  1. A.the subscript-at form inside double quotes that yields every member as a distinct word, mirroring the safe all-arguments expansion
  2. B.an ordered collection addressed by integer subscripts starting at zero, declared with parenthesized space-separated elements
  3. C.the hash-prefixed brace form that reports how many elements a collection currently holds rather than its contents
  4. D.the exclamation-prefixed brace subscript form that expands to the set of indices or string keys present in a collection
Reveal the answer + AI explanation — free account

8. Which term means: "the subscript-at form inside double quotes that yields every member as a distinct word, mirroring the safe all-arguments expansion"?

Mid
  1. A.Array key listing
  2. B.Array expansion to elements
  3. C.Array length expansion
  4. D.Indexed array
Reveal the answer + AI explanation — free account

9. Which statement is correct?

Mid
  1. A.Array expansion to elements — an ordered collection addressed by integer subscripts starting at zero, declared with parenthesized space-separated elements
  2. B.Array expansion to elements — a key-value collection indexed by arbitrary strings, which must be declared explicitly with a capital-A declare flag
  3. C.Array expansion to elements — the subscript-at form inside double quotes that yields every member as a distinct word, mirroring the safe all-arguments expansion
  4. D.Array expansion to elements — the hash-prefixed brace form that reports how many elements a collection currently holds rather than its contents
Reveal the answer + AI explanation — free account

10. What is Array length expansion?

Senior
  1. A.the hash-prefixed brace form that reports how many elements a collection currently holds rather than its contents
  2. B.a key-value collection indexed by arbitrary strings, which must be declared explicitly with a capital-A declare flag
  3. C.an ordered collection addressed by integer subscripts starting at zero, declared with parenthesized space-separated elements
  4. D.the exclamation-prefixed brace subscript form that expands to the set of indices or string keys present in a collection
Reveal the answer + AI explanation — free account

11. Which term means: "the hash-prefixed brace form that reports how many elements a collection currently holds rather than its contents"?

Senior
  1. A.Array key listing
  2. B.Associative array
  3. C.Array expansion to elements
  4. D.Array length expansion
Reveal the answer + AI explanation — free account

12. Which statement is correct?

Senior
  1. A.Array length expansion — the hash-prefixed brace form that reports how many elements a collection currently holds rather than its contents
  2. B.Array length expansion — an ordered collection addressed by integer subscripts starting at zero, declared with parenthesized space-separated elements
  3. C.Array length expansion — the exclamation-prefixed brace subscript form that expands to the set of indices or string keys present in a collection
  4. D.Array length expansion — a key-value collection indexed by arbitrary strings, which must be declared explicitly with a capital-A declare flag
Reveal the answer + AI explanation — free account

13. What is Array key listing?

Senior
  1. A.the exclamation-prefixed brace subscript form that expands to the set of indices or string keys present in a collection
  2. B.a key-value collection indexed by arbitrary strings, which must be declared explicitly with a capital-A declare flag
  3. C.an ordered collection addressed by integer subscripts starting at zero, declared with parenthesized space-separated elements
  4. D.the hash-prefixed brace form that reports how many elements a collection currently holds rather than its contents
Reveal the answer + AI explanation — free account

14. Which term means: "the exclamation-prefixed brace subscript form that expands to the set of indices or string keys present in a collection"?

Senior
  1. A.Array key listing
  2. B.Indexed array
  3. C.Associative array
  4. D.Array length expansion
Reveal the answer + AI explanation — free account

15. Which statement is correct?

Senior
  1. A.Array key listing — the hash-prefixed brace form that reports how many elements a collection currently holds rather than its contents
  2. B.Array key listing — the exclamation-prefixed brace subscript form that expands to the set of indices or string keys present in a collection
  3. C.Array key listing — an ordered collection addressed by integer subscripts starting at zero, declared with parenthesized space-separated elements
  4. D.Array key listing — the subscript-at form inside double quotes that yields every member as a distinct word, mirroring the safe all-arguments expansion
Reveal the answer + AI explanation — free account

Free to start

Answers, AI explanations, and a scored voice mock interview

Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take one full AI mock interview — scored like a real panel.

Practice Arrays free