ExamGecko
Question list
Search
Search

Question 42 - JN0-223 discussion

Report
Export

Which two statements are correct about a Python list data type? (Choose two.)

A.
The data contained in a list data type can be modified.
Answers
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.
Answers
B.
The data contained in a list data type is sequenced and indexed starting from 0.
C.
The data contained in a list data type cannot be modified.
Answers
C.
The data contained in a list data type cannot be modified.
D.
The data contained in a list data type is not sequenced or indexed.
Answers
D.
The data contained in a list data type is not sequenced or indexed.
Suggested answer: A, B

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.

Option C is incorrect because lists are mutable, allowing modifications. Option D is incorrect because lists are indeed sequenced and indexed, unlike dictionaries.

Python Official Documentation: Covers the properties of lists, including mutability and indexing.

Python Data Structures Guide: Explains list operations and how to manipulate them.

asked 18/09/2024
Alexandre BOUCHER
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first