CBSE Class 11 Computer Science Question 3 of 98

Python Programming Fundamentals — Question 3

Back to all questions
3
Question

Question 3

Assertion (A): In Python, strings, lists and tuples are called sequences.

Reasoning (R): Sequence is referred to as an ordered collection of values having similar or different data types.

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true but R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.
Answer

Both A and R are true and R is the correct explanation of A.

Explanation
A sequence is an ordered collection of items in Python, and these items can have similar or different data types. They are indexed by integers. The three main types of sequence data types in Python are strings, lists, and tuples.