Consider the following R code: x <- c(4, 8) x[5] <- 2 c(length(x), sum(x, na.rm = TRUE), sum(is.na(x))) What is printed when the code is run?
A[1] 5 14 3
B[1] 5 NA 2
C[1] 3 14 0
D[1] 5 14 2
🔒 Answer hidden — practise on Mcqkart to check yourself and see the explanation.
Want more like this? Create a free account to practise a full test, track your progress, and get spaced-repetition review.
Practise on Mcqkart →🎓 Book an expert →