R Programming MCQs with answers Page - 2

Here, you will find a collection of MCQ questions on R Programming. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 828.03K Points
Coach

Q. A . . . . . . . . is a variable that holds one value at a time.

  • (A) Scalar variable
  • (B) Duplex
  • (C) High
  • (D) Vector

A

Admin • 828.03K Points
Coach

Q. Which of the following is not an object of R?

  • (A) calls
  • (B) expressions
  • (C) strings
  • (D) names

A

Admin • 828.03K Points
Coach

Q. Scripts will run on . . . . . . . .

  • (A) Script Editors
  • (B) Console
  • (C) Terminal
  • (D) GCC Compiler

A

Admin • 828.03K Points
Coach

Q. Why is it needed for R studio to update regularly?

  • (A) Bugs
  • (B) More Functions
  • (C) Methods
  • (D) For more packages

A

Admin • 828.03K Points
Coach

Q. If commands are stored in an external file, say commands.R in the working directory work, they may be executed at any time in an R session with the command . . . . . . . .

  • (A) source("commands.R")
  • (B) exec("commands.R")
  • (C) execute("commands.R")
  • (D) exect("command.R")

A

Admin • 828.03K 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

A

Admin • 828.03K Points
Coach

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

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

A

Admin • 828.03K 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

A

Admin • 828.03K 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

A

Admin • 828.03K 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

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ