Answer:
simply use the differentiation method
alkane members are single bonded and are Sp3 hybridized with tetrahydral geometry
Alkenes or other atoms with double bonds are Sp2 hybridized and Alkynes is a triple bond with Sp hybrid
you can also use the steric number formula which is Atoms+lone pairs =Steric number
in this case the type of bond doesn't matter