MCQ Bank
Suppose you need a data file which is available in memory of Stata. What command would you use to open this file?
- A) sysuse.auto
- B) Sysuse auto
- C) sysuse auto
- D) Sys auto
Which of the following commands is not correct one for making a graph in Stata?
- A) None of the given options
- B) histogram rep78, discrete kdensity
- C) twoway (scatter price length), by(foreign)
- D) graph pie, over(rep78)
Suppose you are interested to get information about mean, standard deviation, minimum and maximum values of prices of automobiles data stored in Stata. Which command would you use to get desired information?
- A) describe
- B) list
- C) summarize
- D) All of the given options
Which of the following commands in Stata start with small alphabets?
- A) All of the given options
- B) The generate command
- C) The replace command
- D) The list command
Suppose you want to use automobiles data file stored in memory of Stata. Which of the following is most appropriate command?
- A) Sysuse Auto
- B) sysuse auto
- C) Sysuse Dir
- D) sysuse dir
Which command you type to get summary statistics of price and length of automobiles data stored in memory of Stata?
- A) des price length
- B) None of the given options
- C) sum price length
- D) list price length
Suppose we have 10 years data on price in stata and we want to create a new variable lnprice. What command would we type to generate this new variable?
- A) gen lnprice = (ln*(price))
- B) gen lnprice = ln(price)
- C) All of the given options
- D) gen lnprice = ln*(price)
Missing value in Stata is represented by:
- A) Space
- B) Both dot and space
- C) Dot
- D) Line
Which of the following will be output of "tabulate" command in Stata?
- A) All of the given options
- B) Number of observations, mean, minimum and maximum values
- C) Frequency , cumulative frequency and percentage
- D) Number of observations, mean and standard deviation
Variables names in Stata can start from:
- A) Alphabets
- B) Both alphabets and characters
- C) Characters
- D) None of the given options
Suppose you need summary statistics (mean, standard deviation, minimum and maximum values) of price and length data of automobiles stored in memory of Stata. Which of the following is most appropriate command?
- A) tabstat price length. stats(mean sd min max)
- B) Tabstat price length, Stats(mean sd min max)
- C) Tabstat price length. Stats(mean sd min max)
- D) tabstat price length, stats(mean sd min max)
A shortcut for a specific command is represented by:
- A) Underlined part in the syntax
- B) Syntax
- C) Capital letters
- D) None of the given options
Which of the following commands would you use to empty variable window?
- A) sysuse auto
- B) clear
- C) list
- D) replace
Which of the following is an icon of graphic user interface of Stata?
- A) Data
- B) User
- C) Statistics
- D) All of the given options
Which of the following windows in stata is used to view the commands executed to perform certain operation?
- A) Review window
- B) Properties window
- C) Variables window
- D) Command window
Which command you type to get frequency tables of price and length of automobiles data stored in memory of Stata?
- A) tab1 price length
- B) Tab1 price.length
- C) tab1 price.length
- D) Tab1 price length
Suppose there are two variables, exports and imports in your data file.You want to introduce a third variable openness which is sum of exports and imports. Which of the following best describes it?
- A) Gen Openness = Exports + Imports
- B) gen openness = exports + imports
- C) gen lnopenness = exports + imports
- D) gen openness = ln(exports) + ln(imports)
All of the following can be names of variables in Stata Except:
- A) gdp_domestic
- B) 2009gdp
- C) gdp2013
- D) gdp
Suppose you want to see all data files stored in memory of Stata. Which of the following is most appropriate command?
- A) sysuse dir
- B) Sysuse.Auto
- C) sysuse auto
- D) Sysuse.Dir
Which of the following is not example of twoway graphs?
- A) Histogram
- B) Pie graph
- C) Histogram and Pie graph
- D) All of the given options