Home / Programming Questions / R Programming MCQs / Page 3

R Programming MCQs with answers Page - 3

Dear candidates you will find MCQ questions of R Programming here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question

M

Mr. Dubey • 51.17K Points
Coach

Q. Point out the wrong statement?

(A) The grammar of the language determines whether an expression is complete or not
(B) The <- symbol is the assignment operator in R
(C) The ## character indicates a comment
(D) R does not support multi-line comments or comment blocks

M

Mr. Dubey • 51.17K Points
Coach

Q. Which of the following will start the R program?

(A) $ R
(B) > R
(C) * R
(D) @ R

M

Mr. Dubey • 51.17K Points
Coach

Q. What will be the output of the following R function?
nchar()

(A) no. of characters
(B) first 5 characters
(C) last 5 characters
(D) Does not exist

M

Mr. Dubey • 51.17K Points
Coach

Q. What is the meaning of the following R function?
print( sqrt(2) )

(A) 1.414314
(B) 1.414214
(C) Error
(D) 14.1414

M

Mr. Dubey • 51.17K Points
Coach

Q. What is the function to set row names for a data frame?

(A) row.names()
(B) colnames()
(C) col.names()
(D) column name cannot be set for a data frame

M

Mr. Dubey • 51.17K Points
Coach

Q. R is mostly used in . . . . . . . .

(A) Problem solving
(B) Statistics
(C) Probability
(D) All of the mentioned

M

Mr. Dubey • 51.17K Points
Coach

Q. What will be the output of the following R function?
ab <- list(1, 2, 3, "X", "Y", "Z")
dim(ab) <- c(3,2)
print(ab)

(A) 1 "X" 2 "Y" 3 " Z"
(B) 1 "X" 2 "Y" 3 " Y"
(C) 1 "W" 2 "Y" 3 " Z"
(D) Error

M

Mr. Dubey • 51.17K Points
Coach

Q. Point out the wrong statement?

(A) Key feature of R was that its syntax is very similar to S
(B) R runs only on Windows computing platform and operating system
(C) R has been reported to be running on modern tablets, phones, PDAs, and game consoles
(D) R functionality is divided into a number of Packages

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.