You are on page 1of 3

1 – which of the following will start the R program

 $R

2- which of the following is used for statistical analysis in


R language
 RStudio

3- files containg R scripts ends with extension…


 .R

4- R is an … programming language
 Open source

5- what would be the result of following R code ?


>x<-5 >y<-3 >print(x+y)
8

6- what would be the value of the following expression ?


Log(-10)
 warning in log(-10) : NaN produced

7- the … function return random samples from a


distribution
 r

8- which of the following finds the maximum value in the


victor x , exclude missing values
 max(x,na.rm=TRUE)

9- in R every operation has a … call


 Function

10- R functionality is divided into a number of …


 Packages

11- if a command is not complete at the end of a line ,R


will give a different prompt , by default it is :
 +
12- which function is used to create the vector with more
than one element ?
 C()

13- you can check to see whether an R object is NULL


with the … function
 is.null()

14- what would be the output of the following code ?


>sqrt(-25)
 NaN

15- which of the following is an example of vectorized


operation as far as subtraction is concerned ?
>x <- 3:6 >y <- 10:13
 x-y

You might also like