Your entry stamp allows you to stay for 180 days. You can either leave thailand then come back in, or extend it in country (which requires all the documentations again, so people may choose not to go this route). Every re-entry resets a new 180 days stamp
The visa is valid for 5 years. For now, there are no written rules to say what happens if you should continue the course or not after approval.