arrow
arrow
arrow
Which of the following statements is true about Python lists?
Question



Which of the following statements is true about Python lists?

A.

Python lists must contain elements of the same type.

B.

Python lists can only contain numeric values.

C.

Python lists are immutable.

D.

Python lists can contain different element types.

E.

Python lists cannot be nested.

Correct option is D

The correct answer is Python lists can contain different element types.
Important Key Points:
1. Python lists are a heterogeneous data structure, meaning they can contain elements of different data types (e.g., integers, strings, objects).
2. Python lists are mutable, meaning elements can be added, removed, or modified after the list is created.
3. Lists in Python can contain other lists, allowing for nested lists.
Knowledge Booster:
· Option (a): Incorrect because Python lists can contain elements of different types, making them very flexible.
· Option (b): Incorrect as Python lists can hold any data type, including strings, dictionaries, or even other lists.
· Option (c): Incorrect because Python lists are mutable; their contents can be changed after creation.
· Option (e): Incorrect since Python lists can be nested, meaning a list can contain other lists as elements, allowing for complex data structures.

Free Tests

Free
Must Attempt
Video Solutions

RBI Assistant Pre 2026 Full Mock Test -01

languageIcon English
  • pdpQsnIcon100 Questions
  • pdpsheetsIcon100 Marks
  • timerIcon60 Mins
languageIcon English
Free
Must Attempt
Video Solutions

RBI Asst Prelims 2026 : Reasoning Section Test 01

languageIcon English
  • pdpQsnIcon35 Questions
  • pdpsheetsIcon35 Marks
  • timerIcon20 Mins
languageIcon English
Free
Must Attempt
Video Solutions

RBI Office Attendant 2026 Full Mock Test - 01

languageIcon English
  • pdpQsnIcon120 Questions
  • pdpsheetsIcon120 Marks
  • timerIcon90 Mins
languageIcon English
test-prime-package

Access ‘IBPS SO IT Officer’ Mock Tests with

  • 60000+ Mocks and Previous Year Papers
  • Unlimited Re-Attempts
  • Personalised Report Card
  • 500% Refund on Final Selection
  • Largest Community
students-icon
354k+ students have already unlocked exclusive benefits with Test Prime!
Our Plans
Monthsup-arrow