That would be either G major or E minor.
It depends on which key signature. D major has 2 sharps. F# major has 6 sharps. Bb major has no sharps.
There are six sharps in F sharp major.
The minor key with three sharps is B minor. In the key signature of B minor, the sharps are F#, C#, and G#. This key is the relative minor of D major, which also has two sharps in its key signature.
There are two sharps in b natural minor: F# and C#
A Major. F#, C# and G#.
One : F sharp!
The key signature of the D major key has nine sharps: F, C, G, D, A, E, B, and F.
To determine the key signature with sharps in a musical piece, look at the last sharp in the key signature. This sharp will be a half step up from the note that represents the key. For example, if the last sharp is F, the key signature is G major.
The key signature with 7 sharps is C-sharp major. In this key, the sharps are F-sharp, C-sharp, G-sharp, D-sharp, A-sharp, E-sharp, and B-sharp. Its relative minor is A-sharp minor, which also features the same key signature.
F# minor has a key signature of 3 sharps, whereas Gb minor has a key signature with 6 flats. It's easier to use key signatures with fewer flats/sharps.
D major has F# and C# in it's key signature.
The key signature of D sharp major has nine sharps: F, C, G, D, A, E, B, and F.