for hybridization u have to check the no of sigma bonds.
for example in methane the no of sigma bond is 4
so the hybridization w'll be sp3 (s,p,p,p,d,d,d)
now in case of ethene

the no of sigma bonds formed by c is 3 so the hybridization w'll be sp2 (s,p,p,p,d,d,d)