Home > MCQs > IT & Programming > R Programming MCQs

R Programming MCQ

R Programming Quick Quiz

Question 1 of 10
  • Which of the following commands is used to check and verify whether or not the ”xlsx" package is installed?

    Answer & Explanation

    Correct Answer: any(grepl(‘x|sx',instalIed.packages()))

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following functions is used for variable conversions?

    Answer & Explanation

    Correct Answer: as.array

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following functions is used to join multiple vectors to create a data frame?

    Answer & Explanation

    Correct Answer: cbind()

    Note: This Question is unanswered, help us to find answer for this one

  • Point out the correct statement.

    Answer & Explanation

    Correct Answer: Empty vectors can be created with the vector() function

    Note: This Question is unanswered, help us to find answer for this one

  • In R programming language, the library(x) function:

    Answer & Explanation

    Correct Answer: will load add-on packages

    Note: This Question is unanswered, help us to find answer for this one

  • There is a csv f‌ile named "data.csv". Which of the following options will read that csv f‌ile in R programming?

    Answer & Explanation

    Correct Answer: output <- read.csv('data.csv')

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following are the valid vector Inputs to the pie() function?

    Answer & Explanation

    Correct Answer: foo <- c[0. 10. 10. 90)

    Note: This Question is unanswered, help us to find answer for this one

  • In R programming. which of the following are the valid values for the data type, Numeric?

    Answer & Explanation

    Correct Answer: 2 999

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following are related to slicing and extracting data by indexing lists?

    Answer & Explanation

    Correct Answer: ['1'] xf‌l'name

    Note: This Question is unanswered, help us to find answer for this one

  • Which of the following options represents an atomic vector of the integer type?

    Answer & Explanation

    Correct Answer: print(2+3i)

    Note: This Question is unanswered, help us to find answer for this one

  • R Programming Quick Quiz

    battery

    Poor Results!

    You need a lot of improvement.

    Just don't give up!

    Correct Answers: 0/10

    Start Practicing with our MCQs given below.