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

Added 16 Nov 2026

The input() function in Python returns:

  1. An integer
  2. A string Correct answer
  3. A float
  4. A boolean

Correct answer

B. A string

11 views

MCQSEXAM

Explanation

input() always returns a string. If you need a number, you must convert it with int() or float(). This is a common beginner mistake.

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