Consider the following R code: n <- 0 s <- 0 for (i in 1:n) s <- s + 10 * i c(s, i) What is printed when the code is run?
A[1] 10 1
B[1] 10 0
C[1] 0 0
D[1] 0 NA
🔒 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 →