_____ directive specifies the end of execution of a program.

37 views
  • End (Correct Answer)
  • Return
  • Stop
  • Terminate

Explanation

The answer is End. The end directive specifies the end of execution of a program in Python. It is a non-keyword statement that is used to terminate the execution of a program. It is not necessary to use the end directive in Python, but it can be used to make code more readable and maintainable. The other options are incorrect. Return is a keyword statement that is used to exit a function and return a value. Stop is a keyword statement that is used to stop the execution of a program immediately. Terminate is not a keyword statement in Python.

Comments (0)

No comments yet. Be the first to comment!

Want to practice more?

Explore thousands of MCQs across every exam category on Exams Nepal.

Find More MCQs