Chapter-wise MCQ Practice Bank

Computer Science • Class XII

Q1. Which of the following components of a function header is mandatory in Python?

A) Default Arguments
B) Function Name and Parentheses
C) Return Type Annotation
D) Docstring
Correct Answer: B
Explanation: A function in Python must have the def keyword, followed by the function name and parentheses ().

Search CBSE Resources

Type a keyword above to search through notes, PDFs, and papers.