KnowledgeBoat Logo

Class - 12 CBSE Computer Science — Assertion Reason Type Questions

Assertion. A list having same-sized lists as its elements is a regular 2D list.

Reason. When similar sequences such as tuples, dictionaries and lists become part of another data structure, they make a regular 2D list.

Linear Lists

2 Likes

Answer

(b)

Both Assertion and Reason are true but Reason is not the correct explanation of Assertion.

Explanation
A regular two dimensional list is a list having lists as its elements and each element-list has the same number of elements. Regular 2D lists do not necessarily depend on being nested within other data structures such as tuples or dictionaries because regular 2D lists can exist independently as data structures in Python.

Answered By

1 Like