Answer:
Presumably, when they are diagnosed they are told. It also depends on how severe the autism is. If it is a mild case, just to do with socialising, they know and usually understand. If it is very severe, like if they cannot talk, then they probably don't know, or understand.