This exercise is from the Theory Section on the CAGED system.
Here is the basic D Major scale played in open position (the lowest possible position on the fretboard), then at the octave (12th fret) position.
Both scales span 1 octave each (i.e. from D through to the next highest D).
In open position first play the D major chord. Followed by the D Major Scale:
D - E - F# - G - A - B - C# - D
Then up at the 12th fret play the higher D major chord. Followed by that D Major Scale:
D - E - F# - G - A - B - C# - D
There is another way to play that same scale. The notes follow the same order, but different fingers and frets are used because we drop back to the 11th fret with the 1st finger. We recommend this next scale as it will involve less stretching and we will be mainly using it later on. Once again, after strumming the higher D major chord, practice this D Major Scale:
D - E - F# - G - A - B - C# - D
Practice at least the 1st and 3rd scales in this ActionTab until you are very familiar with them. Get faster and more regular with them. Use different methods to practice them, i.e. Ascend and descend through the notes.