In the case of divorced or separated parents, which parent generally gets to claim the qualifying child?

A) The custodial parent
B) The non-custodial parent
C) The parent with higher income
D) The parent who files the tax return first