205k views
2 votes
Which of the following is a correct variable name?

Low temperature
7temperature
low--temperature
o low_Temperature

User Russ B
by
5.0k points

1 Answer

3 votes

Answer:

low_temperature

Step-by-step explanation:

Required

Select which of the given options is correct

In programming;

Variable names don't contain space; as in Low temperature

Variable names don't begin with numbers; as in 7temperature

Variable names don't contain dashes; as in low--temperature

However, variable names may contain underscore; as in low_Temperature;

Hence;

Option D answers the question

User Daniel Fletcher
by
4.7k points