McqkartGet appPractise

Consider the following R code: x <- c(0.5, 1.5, 2.5, 3.5) round(x) - trunc(x) What is printed when the code is run?

A[1] 1 0 1 0
B[1] 1 1 1 1
C[1] 0 0 0 0
D[1] 0 1 0 1
🔒 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 →