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

Added 16 Nov 2026

A function in Python can return:

  1. Only integers
  2. Any type Correct answer
  3. Only strings
  4. Only floats

Correct answer

B. Any type

10 views

MCQSEXAM

Explanation

A function can return any type: integer, string, list, or even another function. If no return is specified, it returns None.

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