Arrays interview questions

15 Arrays questions from the Bash bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.

Free to start: the 2-minute IT readiness check — six questions and a result.

Take the free IT readiness check

or take a mock interview set up for this area

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

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

Answer + AI explanation with Pro

Free to start

Start with a free readiness check

Sign up free for the 2-minute IT readiness check and a scored result. Answers, explanations and the AI tutor on every Arrays question come with Pro.

Take the free IT readiness check

or take a mock interview set up for this area

24,000+ questions & coding problemsSoftware & IT16,274 questionsGovernment jobs26 examsAptitudenew questions every timeAI practice interviewwith feedback65 topics to practiseMechanical1,149 questionsGATE ME9 papersEngineering Mathematics381 questions2-minute checkfreeDSA Problems1,422Civil1,005 questionsGATE CE9 papersCS Fundamentals1,209 questionsYour scores6 skillsSystem Design25Electrical / EEE1,047 questionsGATE EE9 papersRun your codeC++ · Java · PythonLow-Level Design144Electronics & Comm.975 questionsGATE EC9 papersAI help on every questionFull-Stack6,282Chemical1,005 questionsGATE CH9 papersAI whiteboardsystem designWork abroadEurope · remote · transfersESE ME1 paperGATE practice papers2019–2026ESE CE1 paperDate alertsbefore the last dateESE EE1 paperBehavioural courseHR round practiceESE ET1 paperResume optimizerProSSC JE ME1 paperApplication trackerSSC JE CE1 paperCompany-wise prepSSC JE EE1 paperRole roadmapsRRB JE1 subjectPriced in ₹UPI · cardsISRO SC1 paperGATE CS9 papersIBPS SO IT1 paperUGC NET CS1 paperSSC CGL26 papersIBPS PO26 papersRRB NTPC26 papersSSC CHSL26 papersIBPS Clerk26 papersSBI Clerk26 papersRRB Group D26 papersSSC CPO26 papersSSC GD26 papers