Answer:
Sharps and Flats are used to indicate these pitches. As shown in the previous examples: "G Major" has a sharp which is used in front of the F; "F Major" has a flat is which is used in front of the B.