A Major scale is made by following the pattern: w-w-h-w-w-w-h
(w=whole step, h=half step).
It gives you an easy view and understanding on how major scales are made. They are all made with this pattern, but all the others have sharps since jumping a whole or half step may put you on one of those notes.