Question:

A function NEVER returns data.

Show Hint

In Python, the \texttt{return} statement is used to send a result back from a function to the place where it was called.
Updated On: Mar 14, 2026
  • True
  • False
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is B

Solution and Explanation

Step 1: Understand what a function is in programming.
A function in programming is a block of organized and reusable code designed to perform a specific task. Functions help reduce repetition and improve readability and modularity of programs.
Step 2: Understand the concept of return values.
Many functions return values using the \texttt{return} statement. When the function executes the return statement, the control goes back to the calling program along with a value.
For example \[ \texttt{def add(a,b):} \] \[ \texttt{\ \ return a+b} \] Here the function returns the sum of two numbers.
Step 3: Analyze the given statement.
The statement says that a function NEVER returns data. This is incorrect because functions frequently return values using the return statement.
Some functions may not return values explicitly, but many functions do return useful results.
Step 4: Conclusion.
Since functions can return data, the given statement is false.
Was this answer helpful?
0
0