MCQs R Programming

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

Quiz about R Language

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

 
 
 
 

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

 

 
 
 
 

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

 

 
 
 
 

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. 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?

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

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

 
 
 
 

For More R Quiz, Visit R Language MCQs 1