1. Home
  2. Federal Board of Intermediate and Secondary Education (FBISE)
  3. Computer Science FBISE Class 11
  4. A function in Python is defined using the keyword:

Added 16 Nov 2026

A function in Python is defined using the keyword:

  1. function
  2. def Correct answer
  3. define
  4. func

Correct answer

B. def

12 views

MCQSEXAM

Explanation

def is used to define a function. The function name is followed by parentheses and a colon. The body is indented.

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