Multiple Choice Quizzes

Take the quiz test your understanding of the key concepts covered in the chapter. Try testing yourself before you read the chapter to see where your strengths and weaknesses are, then test yourself again once you’ve read the chapter to see how well you’ve understood.

1. Which of the following do we use to type in commands in Stata?

  1. Command window   
  2. Review window  
  3. Variables window
  4. Do-file editor 


a. Command window

d. Do-file editor

2. Which of the following is the command to open a dataset?

  1. pwd
  2. describe 
  3. use 
  4. open 



3. Which of the following is the command that will give us the mean of a variable?

  1. describe
  2. codebook
  3. sum 
  4. mean  


c. sum 

d. mean  

4. Which of the following codes are wrong?

  1. gen age2==age*age
  2. gen age2=age*age   
  3. keep if gender==2   
  4. keep if gender=2   


d. keep if gender=2   

5. Which of the following commands is used for combining datasets based on observations?  

  1. merge
  2. list  
  3. reshape   
  4. append