Iraq executed 42 people, including a woman, for mass killings and other terrorism offences over two days this week, the Justice Ministry says.