Consider the following R code: x <- 0 a <- FALSE && {x <- x + 1; TRUE} b <- TRUE & {x <- x + 10; TRUE} c(a, b, x) What is printed when the code is run?
A[1] 0 1 11
B[1] 1 1 11
C[1] 0 0 10
D[1] 0 1 10
🔒 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 →