Megapixels is a measurement of a digital image quality. One Megapixel is equal to One Million pixels. Higher the megapixel, better the quality of an image.
Optical zoom allows you to get a closer view of an object. Optical zoom usues actual optical lenses for changing magnification of an object. Optical zoom provides a better image quality than digital zoom.