D Major and B Minor
Up to 2 sharps or flats.
Minor scales have flats and major scales have sharps.
There are more than three major scales that use sharps. Major scales with sharps are G, D, A, E, B, F#, and C#.
A major and F# minor each have 3 sharps.
For c major there are no sharps, for b flat major there are two flats, b flat and e flat
D Major has two sharps which areF SharpC SharpYou can learn more about Major Scales and Sharps at the links below.
The sharps and flats (black notes)
It depends on which key signature. D major has 2 sharps. F# major has 6 sharps. Bb major has no sharps.
The Key of Ab does not have any sharps naturally written in it. It has four flats.
The major scale with 2 sharps is D major, they are F and C sharp.
D major has 2 sharps: F and C. D minor has none; it has 1 flat.
There are three enharmonic scales at the bottom of the circle of fifths, those are D-flat, G-flat and C-flat majors for the flats and B, F-sharp and C-sharp majors for the sharps. The relative minors for these scales are B-flat, E-flat and A-flat minors for the flats and G-sharp, D-sharp and A-sharp minors for the sharps.