CBSE Class 12 Computer Science Question 26 of 103

Working with Functions — Question 2

Back to all questions
2
Question

Question 2

Which of the following items are present in the function header ?

  1. function name only
  2. both function name and parameter list
  3. parameter list only
  4. return value
Answer

both function name and parameter list

Reason — Function header is the first line of function definition that begins with keyword def and ends with a colon (:), specifies the name of the function and its parameters.