A pregnancy test is responsible for detecting Human Chorionic Gonadotropin (HCG) or the pregnancy hormone. The pregnancy hormone is generated…