2
QuizMultiple Choice

Best Practices

Question 2 • SC-Fundamentals of Computing - Content Recovery - Design & Development

Which of these would be a good name for a variable that holds a person’s first name?

Answer
A
lastName
B
tomSmith
C
firstName
D
N01

Explanation

A good variable name should describe the value it stores. “firstName” clearly indicates that the variable holds a person’s first name. “lastName” describes a different value, while “tomSmith” is a specific person’s name rather than a general description.

AI-written and checked against the verified answer.

Next