A bitmap image is a grid of pixels. Each pixel stores one colour as a binary number. The number of bits per pixel is the colour depth, and the number of pixels in the image is the image resolution. A file header stores details such as the width, height and colour depth.
A vector graphic stores no pixels. It stores a drawing list of drawing objects (line, circle, rectangle), each with properties such as position, size and colour. It can be enlarged without losing quality.
Sound is analogue. To store it, the amplitude of the wave is measured at regular intervals. This is sampling. More samples per second and more bits per sample give a more accurate recording and a bigger file.