Assessment for Data Structures in R

May 15, 2014 • Jeff Hollister

The following assessment questions are based upon Ahmadou Dicko’s concept map of Data Structures in R (assuming edits made suggested in the comments).

Question 1: Which of the following data structures must have the same atomic data type

A. Lists and Data Frames

B. Vectors and Matrices

C. Vectors and Lists

D. Vectors only

Question 2:  Which of the following is true about a List?

A. A list may only be made up of vectors of the same size and type.

B. A list may only be made up of matrices.

C. A list may be made up of valid data structures of any size and type.

D. A list may not contain other lists.