An octave is the range of eight notes of a major scale. The first note and the last note of a major scale always have the same name. In the C major scale the distance from the lowest C to the C note above it is one octave (eight notes).
This example uses all the notes of the C major scale.