Which of the following is a valid variable assignment?
alpha-init=5
MY VAR= “set to one”
2=xyz
APP_VAR=’zero’
Explanation & Hint:
The valid variable assignment among the options you provided is: APP_VAR='zero' Variable names in many programming languages, including Bash scripting, typically cannot start with a number or contain spaces. They also usually cannot contain special characters other than underscores. So, the first three options are not valid variable assignments:
The fourth option, |