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

What is the purpose of the 'return' statement in a function?

  • A End the program
  • B Start a loop
  • C Declare a variable
  • D Send a value back to the caller
Correct Answer: Option D — Send a value back to the caller
Explanation:
The 'return' statement in a function is used to send a value back to the part of the program that called the function, ending its execution.
Submitted by: PaperMCQs
Related MCQs