Consider the following R code: x <- -2.5 c(round(x), ceiling(x), floor(x), trunc(x)) What is printed when the code is run?
A[1] -2 -3 -2 -2
B[1] -2 -2 -3 -2
C[1] -2 -2 -3 -3
D[1] -3 -2 -3 -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 →