Q. Which statement is used to exit a function early?

  • (A) return
  • (B) exit
  • (C) stop
  • (D) break
πŸ’¬ Discuss
βœ… Correct Answer: (A) return
Explanation: The 'return' statement exits a function and optionally returns a value.
Explanation by: Mr. Dubey
The 'return' statement exits a function and optionally returns a value.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
79
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
92%
Success Rate