An officer candidate school is a military school which trains civilians and enlisted personnel in order for them to gain a commission as officers in the armed forces of a country. How OCS is run differs between countries and services. From Wikipedia
Over 16 days of intense field exercises, candidate performance under fire determined their eligibility for commissioning as second lieutenants.