Which of the following will store the letter H in a Character variable named initial?

initial = 'H'
initial = 'H';

The correct answer is: A. initial = ‘H’

Option B, C, and D are all incorrect because they use double quotes around the letter H. This will store the string “H” in the variable initial, not the letter H.

When you assign a value to a variable, you need to use single quotes if the value is a single character. If the value is a string, you need to use double quotes.

In this case, the value we want to assign to the variable initial is the letter H. The letter H is a single character, so we need to use single quotes around it.

Therefore, the correct way to assign the letter H to the variable initial is:

initial = 'H'