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
A.the exclamation-prefixed brace subscript form that expands to the set of indices or string keys present in a collection
B.the hash-prefixed brace form that reports how many elements a collection currently holds rather than its contents
C.the subscript-at form inside double quotes that yields every member as a distinct word, mirroring the safe all-arguments expansion
D.an ordered collection addressed by integer subscripts starting at zero, declared with parenthesized space-separated elements
A.Associative array — the subscript-at form inside double quotes that yields every member as a distinct word, mirroring the safe all-arguments expansion
B.Associative array — a key-value collection indexed by arbitrary strings, which must be declared explicitly with a capital-A declare flag
C.Associative array — the exclamation-prefixed brace subscript form that expands to the set of indices or string keys present in a collection
D.Associative array — an ordered collection addressed by integer subscripts starting at zero, declared with parenthesized space-separated elements
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"?
A.Array expansion to elements — an ordered collection addressed by integer subscripts starting at zero, declared with parenthesized space-separated elements
B.Array expansion to elements — a key-value collection indexed by arbitrary strings, which must be declared explicitly with a capital-A declare flag
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
D.Array expansion to elements — the hash-prefixed brace form that reports how many elements a collection currently holds rather than its contents
A.Array length expansion — the hash-prefixed brace form that reports how many elements a collection currently holds rather than its contents
B.Array length expansion — an ordered collection addressed by integer subscripts starting at zero, declared with parenthesized space-separated elements
C.Array length expansion — the exclamation-prefixed brace subscript form that expands to the set of indices or string keys present in a collection
D.Array length expansion — a key-value collection indexed by arbitrary strings, which must be declared explicitly with a capital-A declare flag
A.Array key listing — the hash-prefixed brace form that reports how many elements a collection currently holds rather than its contents
B.Array key listing — the exclamation-prefixed brace subscript form that expands to the set of indices or string keys present in a collection
C.Array key listing — an ordered collection addressed by integer subscripts starting at zero, declared with parenthesized space-separated elements
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
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.