134k views
1 vote
PLEASE HELP

Sonia wants to create a program where the user will input six numbers. Which of these can Sonia use as the name for the first variable?
num1
1num
1st
#1

User Zeneida
by
3.7k points

2 Answers

2 votes

Answer:

num1

Step-by-step explanation:

User Cathyjo
by
3.2k points
4 votes

Answer:

The correct answer is:

Option 1: num1

Step-by-step explanation:

Certain rules are used in programming languages to declare variables.

Some examples are:

  • No spaces between variable name
  • No special characters
  • No start with number

In the given question, 6 variables have to be declared. Out of all the given options, num1 is a suitable variable name as the other variables can be named as num2, num3....

Hence,

The correct answer is:

Option 1: num1

User David Benham
by
3.6k points