Statistical Computing and Graphics in R

# MCQs R Programming

The quiz “MCQs R Programming” will help you check your ability to execute some basic operations on objects in the R language, and it will also help you understand some basic concepts. This quiz may also improve your computational understanding.

1. What is the class of the object defined by the expression? x <- c(4,5,10)?

2. For the population y<-c(1,2,3,4,5), write the R command to find the median?

3. Suppose you want to simulate a coin toss 20 times in R. Write the command.

4. Write the R commands for generating 700 random variables from normal distribution by using the following information: Mean = 14, SD = 3, n = 5, k = 2000.

5. Which is the R command for obtaining 1000 random numbers through normal distribution with mean 0 and variance 1?

6. For the population y<-c(1,2,3,4,5), write the R command to find the mean?

7. Let us have 1000 random samples of size 6 under SRSWOR using the following population (111, 150, 121, 198, 112, 136, 114, 129, 117, 115, 186, 110, 121, 115, 114) which is the R command for repeating this procedure 1500 times?

8. How sampling with and without replacement can be done using R?

9. In R the following are all atomic data types EXCEPT:

For More R Quiz, Visit R Language MCQs 2

MCQs R Programming
Scroll to top