JN0-224 · Question #159
Which two statements are correct about a Python list data type? (Choose two.)
The correct answer is A. The data contained in a list data type can be modified. B. The data contained in a list data type is sequenced and indexed starting from 0. Python lists have the following characteristics: Modifiable Data (A): Lists are mutable, meaning you can change, add, or remove elements after the list has been created. Sequenced and Indexed (B): Lists maintain the order of their elements and are indexed starting from 0. This…
Question
Which two statements are correct about a Python list data type? (Choose two.)
Options
- AThe data contained in a list data type can be modified.
- BThe data contained in a list data type is sequenced and indexed starting from 0.
- CThe data contained in a list data type cannot be modified.
- DThe data contained in a list data type is not sequenced or indexed.
How the community answered
(63 responses)- A90% (57)
- C3% (2)
- D6% (4)
Explanation
Python lists have the following characteristics: Modifiable Data (A): Lists are mutable, meaning you can change, add, or remove elements after the list has been created. Sequenced and Indexed (B): Lists maintain the order of their elements and are indexed starting from 0. This means you can access elements by their position in the list.
Topics
Community Discussion
No community discussion yet for this question.