McqkartGet appPractise

Consider the following R code: y <- c(c(TRUE, 2L), "a") z <- c(TRUE, 2L, "a") c(y[1], z[1]) What is printed when the code is run?

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