208k views
0 votes
Which of the following are not valid assignment statements? A) total = 9;

B) 72 = amount;
C) yourAge = myAge;

1 Answer

3 votes

Answer:

The correct option for the given question is option(b) i.e 72 = amount;

Explanation:

In the option(a) the total variable store the value 9 which is a valid assignment

In the option(b) 72 is not a variable because the variable will never start with a numeric number. Therefore it is not a valid assignment statement.

In the option(c) the yourAge variable store the value of myAge variable which is a valid assignment.

So correct answer is an option(b).

User Laurie Young
by
6.8k points