This set of R Programming Language Multiple Choice Questions & Answers (MCQs) focuses on “Visualizing Data – 1”.
1. Which of the following method make vector of repeated values?
a) rep()
b) data()
c) view()
d) read()
View Answer
Explanation: data() load (often into a data.frame) built-in dataset.
2. Which of the following finds the position of a quantile in a dataset?
a) quantile()
b) barplot()
c) barchart()
d) rep()
View Answer
Explanation: barplot() produces a bar graph.
3. Which of the following function cross-tabulate tables using formulas?
a) table
b) stem
c) xtabs
d) read
View Answer
Explanation: table() list all values of a variable with frequencies.
4. Which of the following groups find the correlation matrix?
a) factor.model
b) col.max(x)
c) stem
d) which.max(x)
View Answer
Explanation: factor.congruence is used to find the factor congruence coefficients.
5. which of the following statement make a mosaic plot?
a) histogram()
b) mosaicplot()
c) bar()
d) which.max(x)
View Answer
Explanation: histogram() is lattice command for producing a histogram.
6. Which of the following compute proportions from a contingency table?
a) par()
b) prop.table()
c) anova()
d) mosaicplot()
View Answer
Explanation: par() is used to query and edit graphical settings.
7. Which of the following is lattice command for producing a scatterplot?
a) plot()
b) lm()
c) xyplot()
d) anova()
View Answer
Explanation: plot() produces a scatterplot.
8. Which of the following builds empirical cumulative distribution function?
a) ecdf()
b) cum
c) cumsum
d) lm()
View Answer
Explanation: cumsum() is used to produce running total of values for input vector.
9. Which of the following is used to view dataset in a spreadsheet-type format ?
a) Disp()
b) View()
c) Seq()
d) lm()
View Answer
Explanation: seq() make arithmetic progression vector.
10. ________ function carries out a chi-square test.
a) chisq.test()
b) t.test()
c) prop.test()
d) fisher.test()
View Answer
Explanation: prop.test() is used to inference for 1 proportion using normal approx.
Sanfoundry Global Education & Learning Series – R Programming Language.
Here’s the list of Best Books in R Programming Language.
If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]
- Check Information Technology Books
- Practice Programming MCQs
- Apply for Programming Internship
- Check R Programming Books