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 measures would be most appropriate for describing the central tendency of a variable that is continuous and normally distributed?
- Mean
- Variance
- Median
- Mode
2: Which of the following measures would be most appropriate for describing the spread of a variable that is extremely right-skewed?
- Standard deviation
- Range
- IQR
- Mode
3: True or False? In R, categorical variables are best represented by the factor data type and continuous variables are best represented by the numeric data type.
- True
- False
4: Custom functions are useful when doing which of the following?
- Loading a library
- Visualizing the distribution of one variable
- Working with continuous variables
- Doing the same thing multiple times