Appointments of noncommissioned and petty officers shall conform to the tables of organization and to the rules and regulations prescribed by the United States for the government and administration of the National Guard. All noncommissioned and petty officers shall be appointed by the commanding officer of the division, brigade, regiment, separate battalion, squadron, marine division, or similar organization, upon the recommendation of the commanding officer of the unit in which they are to serve. Noncommissioned and petty officers of separate companies, troops, batteries, detachments, and similar units, not forming part of an existing higher tactical organization, shall be appointed by the Adjutant General. When an examination is required by federal laws or regulations or by state regulations, no enlisted man or woman shall be appointed until he or she has successfully passed the examination.