R Programming Basics - Study Mode

[#61] In R, how do you round a numeric value to the nearest integer using the round() function?
Correct Answer

(A) round(5.78)

[#62] What does the scan() function do in R?
Correct Answer

(B) Read data from a file

[#63] What function is used to calculate the square root of a number in R?
Correct Answer

(A) sqrt()

[#64] In R, what does the function toupper("hello") return?
Correct Answer

(A) "HELLO"

[#65] What is the result of sum(1:5) in R?
Correct Answer

(A) 15