HTTP/1.0 200 OK Content-type: text/html Test 6 -- Assignment Statements

,6/2 10:38 CDT,Due date-->2/10/1999 9:00 CDT

  1. All variables must be assigned before accessing their value.
    true false

  2. The variable names KriSTI and kristi are considered the same.
    true false

  3. What is the assignment operator?
    -> := = <-

  4. User variable names must start with
    upper-case letter dollar sign digit upper-case letter

  5. After the first character, variable names can contain
    upper-case letter digit underscore upper-case letter

  6. If all variables have the integer value 4, what is the value of x after executing x = x*(y+1)?

  7. What value is returned for a variable that was never assigned a value?
    error false 0 nil

  8. What is the result after executing x=4 followed by x='hello'?
    error x=false x=4 nil x='hello'

  9. What are the values for x and y after executing x,y=4,2?
    syntax error x and y are 4 x is 4 y is 2 x and y are 2

  10. What are the values for x and y after executing x,y=y,x?
    syntax error x and y are unchanged x is 4 y is 2 x and y are swapped