Microsoft BASIC, GW-BASIC and BASICA all use a prompt that looks like this:
I can\'t figure out how to exit any of these. Typing END does not e
END
Type "system" and hit enter to exit GW-BASIC in DOS.
Type "shell" and hit enter to go to DOS but still have GW-BASIC in memory. Type "exit" while in DOS to return to GW-BASIC.