[amp_mcq option1=”Double is written” option2=”Nothing is wrong” option3=””Static” starts with a “S”” option4=”Value is not given” correct=”option4″]
The correct answer is: D. Value is not given
The variable dblPi is declared as a static variable of type Double. However, no value is assigned to it. This means that the variable will have an indeterminate value.
The other options are incorrect because:
- Option A is incorrect because the keyword
Doubleis spelled correctly. - Option B is incorrect because there is nothing wrong with the keyword
Static. - Option C is incorrect because the keyword
Staticdoes not start with anS.