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.
The ask:thailand community, consisting of multiple Q/A groups with over 100,000 members, powers this platform. It is not an official government resource. Our members actively contribute to this resource, and while we strive for accuracy, we cannot guarantee its complete reliability. Assistance to travelers is provided as a community service.