Multiple Choice Questions

Before completing the book’s Coder/Hacker chapter exercises, take this multiple-choice pre-test from the end of the chapter.

Next, visit the Coder and Hacker Chapter exercises page for more.

1: Which of the following is appropriate to graph a single categorical variable?

  1. Histogram
  2. Bar chart
  3. Boxplot
  4. Scatterplot

Ans: B

2: Which of the following is appropriate to graph a single continuous variable?

  1. Waffle chart
  2. Histogram
  3. Bar chart
  4. Pie chart

Ans: B

3: A mosaic plot is used when graphing

  1. the relationship between two continuous variables.
  2. the relationship between one continuous and one categorical variable.
  3. the relationship between two categorical variables.
  4. data that are not normally distributed by group.

Ans: C

4: Which of the following is not a recommended type of graph?

  1. Pie chart
  2. Bar chart
  3. Waffle chart
  4. Density plot

Ans: A

5: Density plots, histograms, and boxplots can all be used to

  1. examine frequencies in categories of a factor.
  2. examine the relationship between two categorical variables.
  3. determine whether two continuous variables are related.
  4. examine the distribution of a continuous variable.

Ans: D