Select Page
Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages
Filter by Categories
nmims post
Objective Type Set
Online MCQ Assignment
Question Solution
Solved Question
Uncategorized

1. Which of the following adds marginal sums to an existing table ?
a) par()
b) prop.table()
d) all of the mentioned

Answer: b [Reason:] prop.table() computes proportions from a contingency table.

2. Which of the following lists names of variables in a data.frame ?
a) quantile()
b) names()
c) barchart()
d) all of the mentioned

Answer: a [Reason:] names function is used to associate name with the value in the vector.

3. Which of the following is tool for chi-square distributions ?
a) pchisq()
b) chisq()
c) pnorm
d) all of the mentioned

Answer: c [Reason:] pnorm() is tool for normal distributions.

4. Which of the following groups values of a variable into larger bins ?
a) cut
b) col.max(x)
c) stem
d) which.max(x)

Answer: a [Reason:] stem() is used to make a stem plot.

5. Which of the following determine the least-squares regression line ?
a) histo()
b) lm
c) barlm()
d) all of the mentioned

Answer: b [Reason:] lm calls the lower level functions lm.fit.

6. Which of the following is tool for checking normality ?
a) qqline()
b) qline()
c) anova()
d) all of the mentioned

Answer: a [Reason:] qqnorm is another tool for checking normality.

7. Which of the following is lattice command for producing boxplots ?
a) plot()
b) bwplot()
c) xyplot()
d) all of the mentioned

Answer: b [Reason:] The function bwplot() makes box-and-whisker plots for numerical variables.

8. Which of the following compute analysis of variance table for fitted model ?
a) ecdf()
b) cum()
c) anova()
d) all of the mentioned

Answer: c [Reason:] ecdf() builds empirical cumulative distribution function.

9. Which of the following is used to find variance of all values ?
a) var()
b) sd()
c) mean()
d) all of the mentioned

Answer: a [Reason:] sd() is used to calculate standard deviation.

10.The purpose of fisher.test() is _______ test for contingency table.
a) Chisq
b) Fisher
c) Prop
d) None of the mentioned