Join WhatsApp ChannelDaily MCQs & Exam Updates
Computer Science Medium CSS Uploaded: 13 Aug 2026

Which keyword is used to define a function in Python?

  • A define
  • B func
  • C def
  • D function
Correct Answer: Option C — def
Explanation:
In Python, the keyword 'def' is used to define a function, followed by the function name and parentheses containing any parameters.
Submitted by: PaperMCQs
Related MCQs