This is the basic G major scale. Play it slow, play it a lot. The slower you go, the longer your fingers are held down. The longer your fingers are held down, the more you engage the muscles in your fret hand and fingers. This is how you build strength and muscle memory!
We are in 2nd position. In this position your index finger frets all notes on 2nd fret, middle finger frets all notes on the 3rd or 4th fret, and your ring finger will get the notes on the 5th fret. This basic fingering will apply for all exercises in this position unless notated otherwise.