Which of these statements would create a variable but not assign anything to it?

(1 point)
• variable = empty
• variable = null
• create variable
• variable = "*

1 answer

The statement that would create a variable but not assign anything to it is:

• create variable

In most programming languages, "create variable" is not valid syntax for creating a variable. If we're considering the others:

  • variable = empty: This assigns 'empty' to the variable.
  • variable = null: This assigns 'null' to the variable.
  • variable = "*": This assigns the string "*" to the variable.

None of those create a variable without assignment.