Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Which of the following is invalid assignment?

a) > x < - list("Los Angeles" = 1, Boston = 2, London = 3)
b) > names(x) < - c("New York", "Seattle", "Los Angeles")
c) > name(x) < - c("New York", "Seattle", "Los Angeles")
d) > names(x) < - c("New York", "Los Angeles", "Los Angeles")

Answer: c
Explanation: Lists can also have names, which is often very useful.

Join The Discussion