Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

which of these would be a good name for a variable that holds a persons…

Question

which of these would be a good name for a variable that holds a persons first name?
firstname
n01
tomsmith
lastname

Explanation:

Brief Explanations

A good variable name should clearly represent its purpose. "firstName" directly indicates it holds a person's first - name. "N01" is a generic identifier with no semantic meaning related to first - name. "tomSmith" seems like a full name example rather than a general variable for first name. "lastName" is for the last name, not the first.

Answer:

A. firstName