wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Basics of R Programming-II

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

_________code is used for box and whisker plot in R.

a)

scatter.smooth()

b)

boxplot()

c)

plot()

d)

abline()

2.

_________code is used for scatter plot in R.

a)

scatter.plain()

b)

scatter()

c)

plot()

d)

None of these

3.

We wish to calculate the correlation between two columns of a dataset. Which of the below codes will achieve the purpose?

a)

cor(A, B)

b)

corr(A, B)

c)

coreA, B)

d)

correlation(A, B)

4.

_________code is used to run linear regression model in R.

a)

linear.model()

b)

sum()

c)

lm()

d)

None of the above

5.

Which of the following graph can be used for simple summarization of data?

a)

Scatterplot

b)

Barplot

c)

Overlaying

d)

None of these

6.

What will be the output of the following R code?

x <- c(3, 7, NA, 4, 7)

y <- c(5, NA, 1, 2, 2)

x + y

a)

Symbol

b)

Missing data

c)

5

d)

15.5

7.

In R studio, Scripts will run on ___________________

a)

Script editors

b)

Console

c)

Terminal

d)

GCC compiler

8.

__________code can be used to plot the correlation matrix in the form of correlogram

a)

corplot()

b)

correlationplot()

c)

corrplot()

d)

coreplot()

9.

___________shortcut used to clear the console.

a)

Ctrl + K

b)

Ctrl + L

c)

Ctrl + C

d)

Ctrl + V

10.

________command is used to exit R programming?

a)

quit()

b)

qu()

c)

exit

d)

None of these