Important MCQ

Which is a valid variable name?

Q.Which is a valid variable name?

A) 1num
B) my_var
C) int
D) my var
Correct Answer:
Option B
Detailed Explanation:
B) my_var is correct. A variable is a named memory location. Declare it with a data type before use; names cannot start with a digit or be keywords, and = assigns a value.