An ________ is a homogenous structure and starts with ________ index number.

2023

An ________ is a homogenous structure and starts with ________ index number.

  1. A.

    Strings, one

  2. B.

    Dictionary, zero

  3. C.

    Array, zero

  4. D.

    Array, one

  5. E.

    Question not attempted

Attempted by 1820 students.

Show answer & explanation

Correct answer: C

Step 1: Identify that a homogenous structure stores elements of the same data type. Step 2: Recall that in most programming languages, indexing starts from 0 for arrays and strings. Step 3: Evaluate each option based on whether the structure is homogenous and the starting index. Step 4: Strings are homogenous and indexing starts from 0, so 'Strings, one' is incorrect. Step 5: Dictionaries are not homogenous, so 'Dictionary, zero' is incorrect. Step 6: Arrays are homogenous and indexing starts from 0, so 'Array, zero' is correct. Step 7: 'Array, one' is incorrect because indexing starts from 0, not 1. Step 8: 'Question not attempted' is not a valid answer for a fill-in-the-blank question.

Explore the full course: Up Lt Grade Assistant Teacher 2025