Project Management Answers

A data analyst is assigning a variable to a value in their company’s sales dataset for 2020. Which variable name uses the correct syntax?

Q: A data analyst is assigning a variable to a value in their company’s sales dataset for 2020. Which variable name uses the correct syntax?

or

Q: A data analyst is tagging a number in the 2020 sales dataset of their organization with a certain variable. What variable name makes use of the proper syntax?

  • -sales-2020
  • 2020_sales
  • sales_2020
  • _2020sales

Explanation:  “sales_2020” is the name of the variable, and “500000” is the value that has been allocated to it in this case. It is usual practice to use the underscore character (_) to separate words in variable names, which makes the names easier to read. The use of snake case is another name for this behavior. When assigning, the equal symbol (=) is often used.

Leave a Reply

Your email address will not be published. Required fields are marked *