Question: why are number 2 pencils used for tests?
Answer: The number relates to the hardness of the lead. #2 is a good compromise between being too soft (smeary and smudgy), and being too hard (light and hard for machines to read). Mechanical pencils are easily taken apart and can hold information inside. Thus they would not be allowed.