Q35
Which of the following R code will print the following result? [[1]] [1] 2.263808 [[2]] [1] 1.314165 9.815635 [[3]] [1] 3.270137 5.069395 6.814425 [[4]] [1] 0.9916910 1.1890256 0.5043966 9.2925392
A.
> x <- 1:4
> lapply(x, runif, min = 0, max = 10)
Answer> lapply(x, runif, min = 0, max = 10)
B.
> x <- 1:4
> lapply(x, runif, min = 0, max = 9)
> lapply(x, runif, min = 0, max = 9)
C.
> x <- 1:3
> lapply(x, runif, min = 0, max = 10)
> lapply(x, runif, min = 0, max = 10)
D.
> x <- 1:4
> lapply(x, runif, min = 0, max = 6)
> lapply(x, runif, min = 0, max = 6)
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board