Tuesday, August 9, 2011

Chapter 3, exercise 4

4.  Which of the following variable names are valid?


a.  123variable

No.

b.  x

Yes.


c.  total_score

Yes.

d.  Weight_in_#s

No.

e.  one

Yes.

f.  gross-cost

No.

g.  RADIUS

Yes.


h.  Radius

Yes.

i.  radius

Yes.

j.  this_is_a_variable_to_hold_the_width_of_a_box

Yes.

No comments:

Post a Comment