nerdexam
Juniper

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…

Python

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)
  • A
    90% (57)
  • C
    3% (2)
  • D
    6% (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

#Python lists#mutable data#zero-based indexing#data structures

Community Discussion

No community discussion yet for this question.

Full JN0-224 Practice