In Microsoft BASIC, the END statement terminates program execution, closes all files, and returns to the previous mode.