1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 11
  4. The range() function in Python generates:

Added 16 Nov 2026

The range() function in Python generates:

  1. A list
  2. A sequence of numbers Correct answer
  3. A string
  4. A tuple

Correct answer

B. A sequence of numbers

9 views

MCQSEXAM

Explanation

range() produces a sequence of numbers, often used in for loops. It does not store the whole list in memory.

Reference

Asked in: Matric,FBISE

Preparing for an exam?

Doubts & discussion

Not sure why the answer is B? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Computer Science FBISE Class 11 MCQs

Practise all Computer Science FBISE Class 11 MCQs

Similar MCQs