Вы находитесь на странице: 1из 14

**THIRDUNIT**

**QUESTIONSSTART**
1. Which one of the following boxplot() commands has the correct syntax?
A. boxplot(bf, horiz = FALSE)
B. boxplot(count ~ site, data = bfs, horiz = TRUE)
C. boxplot(site ~ count, data = bfs, horizontal = TRUE)
D. boxplot(count ~ site, data = bfs, horizontal =
TRUE, names = c(G, H, A))
E. boxplot(count ~ site, data = bfs, horizontal =
TRUE, labels = c(G, H, A))
**NEXTQUESTION**
2. Which of the following method make vector of repeated values ?
a) rep()
b) data()
c) view()
d) All of the mentioned

**NEXTQUESTION**

3. Which of the following finds the position of a quantile in a dataset ?


a) quantile()
b) barplot()
c) barchart()

**NEXTQUESTION**

4. Which of the following function cross-tabulate tables using formulas ?


a) table
b) stem
c) xtabs
d) All of the mentioned

**NEXTQUESTION**

5. Which of the following groups find the correlation matrix ?


a) factor.model
b) col.max(x)
c) stem
d) which.max(x)

**NEXTQUESTION**

6. which of the following statement make a mosaic plot ?


a) histogram()
b) mosaicplot()
c) bar()
d) All of the mentioned

**NEXTQUESTION**

7. Which of the following compute proportions from a contingency table ?


a) par()
b) prop.table()
c) anova()
d) All of the mentioned
**NEXTQUESTION**

8. Which of the following is lattice command for producing a scatterplot ?


a) plot()
b) lm()
c) xyplot()
d) All of the mentioned

**NEXTQUESTION**

9. Which of the following builds empirical cumulative distribution function ?


a) ecdf()
b) cum
c) cumsum
d) All of the mentioned

**NEXTQUESTION**
10. Which of the following is used to view dataset in a spreadsheet-type format ?
a) Disp()
b) View()
c) Seq()
d) All of the mentioned

**NEXTQUESTION**

11. ________ function carries out a chi-square test.


a) chisq.test()
b) t.test()
c) prop.test()
d) fisher.test()

**NEXTQUESTION**

12. Which of the following adds marginal sums to an existing table ?


a) par()
b) prop.table()
c) addmargins()
d) All of the mentioned

**NEXTQUESTION**

13. . Which of the following lists names of variables in a data.frame ?


a) quantile()
b) names()
c) barchart()
**NEXTQUESTION**

14. . Which of the following is tool for chi-square distributions ?


a) pchisq()
b) chisq()
c) pnorm
d) All of the mentioned

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

16. Which of the following determine the least-squares regression line ?


a) histo()
b) lm
c) barlm()
d) All of the mentioned

**NEXTQUESTION**

17. Which of the following is tool for checking normality ?


a) qqline()
b) qline()
c) anova()
d) All of the mentioned
**NEXTQUESTION**

18. Which of the following is lattice command for producing boxplots ?


a) plot()
b) bwplot()
c) xyplot()
d) All of the mentioned
**NEXTQUESTION**

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

**NEXTQUESTION**

20. Which of the following is used to find variance of all values ?


a) var()
b) sd()
c) mean()
d) All of the mentioned
**NEXTQUESTION**

21. The purpose of fisher.test() is _______ test for contingency table.


a) Chisq
b) Fisher
c) Prop
d) None of the mentioned

**NEXTQUESTION**

22. ______ lets you perform SQL queries on your R data frames.
a) sqldf
b) plyr
c) forecast
d) All of the mentioned

**NEXTQUESTION**

23. ______ splits a data frame and results an array (hence the da). Hopefully youre
getting the idea here.
a) apply
b) daply
c) stats

**NEXTQUESTION**
24. ________ makes it incredibly easy to fit time series models like ARIMA, ARMA,
AR, Exponential Smoothing, etc.
a) sqldf
b) plyr
c) forecast
d) All of the mentioned

**NEXTQUESTION**

25. ________ provides needed string operators in R.


a) str
b) forecast
c) stringr
d) All of the mentioned

**NEXTQUESTION**

26. Which of the following syntax is used to install forecast package ?


a) install.pack(forecast)
b) install.packages(cast)
c) install.packages(forecast)
d) All of the mentioned

**NEXTQUESTION**

27. Which of the following convert a matrix of phi coefficients to polychoric correlations
?
a) poly()
b) qline()
c) phi2poly
d) All of the mentioned

**NEXTQUESTION**

28. Which of the following is used to plot multiple histograms ?


a) multi.plot()
b) multi.hist
c) xyplot.multi()
d) All of the mentioned

**NEXTQUESTION**

29. Which of the following commands would be best to add a best-fit line to a basic
scatter plot?
A. lines()
B. lty
C. lm()
D. abline()
**NEXTQUESTION**
30. Which of the following statements is not true with regard to the pie() command
and pie charts?
A. You can arrange the pie slices clockwise or counter clockwise.
B. You can plot rows or columns of data frames or matrix objects.
C. You can use custom labels for the slices.
D. You can select the starting position for the first slice.
**NEXTQUESTION**
31. Which one of the following instructions is not valid for use with the barplot()
command?
A. horizontal = TRUE
B. beside = TRUE
C. legend = TRUE
D. horiz = TRUE
**NEXTQUESTION**
32. Which one of the following commands is the correct formula syntax for the
cor.test() command?
A. cor.test(speed, dist, data = cars)
B. cor.test(speed ~ dist, data = cars)
C. cor.test(dist ~ speed, data = cars)
D. cor.test(~ speed + dist, data = cars)
E. cor.test(dist, speed, data = cars)
**NEXTQUESTION**
33. Which one of the following commands carries out a post-hoc test after an aov()?
A. post.hoc(my.aov)
B. ptukey(my.aov)
C. tukey.test(my.aov)
D. TukeyHSD(my.aov)
E. tukeyHSD(my.aov)
**NEXTQUESTION**
34. Which of the following is not required to produce an interaction plot?
A. x.factor
B. response
C. interaction
D. trace.factor
**ENDOFQUESTIONS**

**FOURTHUNIT**
**QUESTIONSSTART**
35. Which of the following commands is not used to get or set names for rows/columns
of objects?
A. col.names
B. names
C. row.names
D. rownames
E. colnames

**NEXTQUESTION**

36. Which one of the following commands would not make a vector of names suitable
for a factor variable?
A. rep(2, c(A, B))
B. gl(2, 1, 4, names = c(A, B))
C. c(A, B, A, B)
D. gl(2, 1, 4, labels = c(A, B))

**NEXTQUESTION**

37. All of the following commands would add the newvec vector to the two-column
data frame, myvec: TRUE or FALSE?
A. myvec$newvec = newvec
B. myvec[ ,3] = newvec
C. myvec = data.frame(myvec, newvec)
D. myvec = cbind(myvec, newvec)
E. myvec[ ,newvec] = newvec
F. myvec[3] = newvec
G. myvec[newvec] = newvec
**NEXTQUESTION**

38. Which of the following aggregate() commands does not use correct syntax?
A. aggregate(dat[1:3], by = c(dat$fac,
dat$site), FUN = sum)
B. aggregate(dat[1:3], by = list(dat$fac,
dat$site), FUN = sum)
C. aggregate(. ~ site, data = dat, FUN = sum)
D. aggregate(resp ~ site, data = dat, FUN =
sum)
**NEXTQUESTION**

39. Which one of the following items is not part of a linear model result?
A. coefficients
B. r.squared
C. residuals
D. fitted.values

**NEXTQUESTION**

40. Which one of the following linear model formula would conduct an analysis of
covariance?
A. y ~ x
B. y ~ A + x
C. y ~ 0 + x
D. y ~ 1 + x
**NEXTQUESTION**

41. Which one of the following commands can be used to create confidence intervals
that you can use to add to a plot?
A. confint()
B. fitted()
C. resid()
D. predict()

**NEXTQUESTION**
42. Which of the following count the number of good cases when doing pairwise
analysis ?
a) count.pairwise
b) count() +
c) anova.para()
d) All of the mentioned

**NEXTQUESTION**

43. Which of the following gives the summary of values likes mean etc ?
a) mean
b) sd
c) describe
d) All of the mentioned

**NEXTQUESTION**

44. The purpose of correct.cor is to correct _________ in values.


a) difference
b) reliability
c) error
d) None of the mentioned

**NEXTQUESTION**

45. In the analysis of variance (ANOVA), a factor is:


A. A dependent variable
B. A set of related treatments, categories or conditions
C. A variable that is confounded or entangled with the independent variable
D. A covariate, that is, a variable that correlates with the dependent variable

**NEXTQUESTION**

46. In the onefactor between subjects (or completely randomised) experiment:


A. The factor is the dependent variable
B. Each participant is tested under all conditions
C. Participants are randomly assigned to the treatment conditions, and each
participant is tested under only one condition
D. The data are records of qualitative characteristics

**NEXTQUESTION**

47. The oneway (or onefactor between subjects) ANOVA tests the hypothesis that, in
the population:
A. All the means have different values
B. All the group means have the same value
C. The control group mean is different from each of the active treatment
means
D. The group means do not all have the same value

**NEXTQUESTION**

48. In the oneway ANOVA, the degrees of freedom of MSbetween is the


a. Number of groups minus 1
b. Number of groups multiplied by , where n is the sample size
c. Number of groups
d. Total number of observations minus 1

**NEXTQUESTION**

49. To decide whether an obtained value of F is significant, we must locate the value in
the appropriate sampling distribution, which is specified by the degrees of freedom.
The critical region

a.. Lies above the 5th percentile of the sampling distribution


b. Lies below the 95th percentile of the sampling distribution
c. Lies above the 95th percentile of the sampling distribution
d. Lies below the 5th percentile of the sampling distribution

**NEXTQUESTION**

50. In the Fratio for the onefactor, between subjects ANOVA, the error term is
a. The numerator of the F ratio
b. The mean of the cell variances
c. The mean of the cell standard deviations
d. The variance of the cell means

**NEXTQUESTION**

51. Three drugs were tested by selecting four groups of volunteers (10 people in each
group) and comparing the skilled performance of three groups, each on a dosage of
one of the drugs, with that of a control (placebo) group, who had ingested a neutral
subst
a. The value of F is 6.0
b. The value of F is less than 1
c. There is insufficient information in the description above and in the table to
determine the value of F
d. The value of F is 0.5

**NEXTQUESTION**

52. It can be seen from the following ANOVA summary table that:
a. The groups were of equal size
b. There were 199 participants
c. The experimental design was of the one factor within subjects type
d. Three groups of people participated in the experiment

**NEXTQUESTION**

53. The ____ command is used to create and display simple text messages to screen
A. Cat()
B. Iat()
C. pat()
D. Dat()

**ENDOFQUESTIONS**
**FIFTHUNIT**
**QUESTIONSSTART**
54. Which one of the commands does not create a color palette?
A. cmyk.colors()
B. heat.colors()
C. topo.colors()
D. gray()
**NEXTQUESTION**

55. Which one of the following instructions results in axis text always perpendicular to
the axis?
A. las = 0
B. las = 1
C. las = 2
D. las = 3
E. las = 4

**NEXTQUESTION**

56. Which one of the following commands places bold text in the left margin of a plot?
A. mtext(??, side = 2, font = 4)
B. mtext(??, side = 2, font = 2)
C. mtext(??, side = 4, font = 2)
D. mtext(??, side = 4, font = 4)

**NEXTQUESTION**

57. Which one of the following instructions produced dotted lines?


A. lty = 1
B. lty = 2
C. lty = 3
D. lty = 4

**NEXTQUESTION**

58. If you create a custom function, which one of the following command pairs would
you use to save the function to disk and load it later?
A. dump() and load()
B. save() and source()
C. write() and read()
D. dump() and source()
E. write() and load()

**NEXTQUESTION**

59. Here is the argument part of a simple custom function:


my.fun = function(x, fun = mean, ...)
Which one of the following commands would you need to display the users choice
(assume they enter fun = sum)?
A. cat(fun)
B. cat(sum)
C. print(fun)
D. print(sum)
E. deparse(substitute(fun))
F. deparse(substitute(sum))
**NEXTQUESTION**

60. If you give a choice and require a logical OR, which one of the following commands
would be most suitable?
A. if(x = Y | x = y)
B. if(x == Y || x == y)
C. if(x == Y OR x == y)
D. if(x = Y || x = y)
E. if(x = Y OR x = y)
**ENDOFQUESTIONS**

Вам также может понравиться