What will be the output of the following R code?
> x <- list(1, "a", TRUE, 1 + 4i)
> x
> x <- list(1, "a", TRUE, 1 + 4i)
> x
A.
[[1]]
[1] 1
[[2]]
[1] "a"
[[3]]
[1] TRUE
[[4]]
[1] 1+4i
B.
[[1]]
[1] 2
[[2]]
[1] "b"
[[3]]
[1] TRUE
[[4]]
[1] 1+4i
C.
[[1]]
[1] 3
[[2]]
[1] "a"
[[3]]
[1] TRUE
[[4]]
[1] 1+4i
D.
[[1]]
[1] 77
[[2]]
[1] "a"
[[3]]
[1] False
[[4]]
[1] 1+5i
Answer: Option A
Join The Discussion