McqkartGet appPractise

Arrange the following statements of a R programme in correct order to make a valid program.

1.> y = A * x
2.> diag (y)
3.> x <- C (1, 2, 3)
4.[1] 1 20 27
5.> A <- matrix (C (1:9), 3, 3)
A5, 2, 3, 1, 4
B5, 1, 3, 2, 4
C4, 5, 3, 2, 1
D5, 3, 1, 2, 4
🔒 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 →