Data Science Midterm Exam with
Complete Solutions
_______ are given to values in Python using an assignment statement.
Expressions
Operators
Names
Programs - ANSWER-
A distribution is skewed right. Which of the following statements is true about the
distribution?
Mean < Median
Mean > Median
Mean = Median
A relationship between the mean and median can not be determined from the given
information - ANSWER-Mean > Median
A relationship between a treatment and the outcome must indicate a causality. In
another word, a person tried a medicine and felt better, does it indicate the medicine
healed him/her?
True
False - ANSWER-False
A restaurant surveys its patrons to find their favorite item on the menu. What is the level
of measurement of the data?
Nominal
Ordinal
Interval
Ratio - ANSWER-Nominal
A study was conducted to determine if the consumption of more than 50 grams of sugar
per day by males over 30 year old leads to an increased risk of Type-2 diabetes. Over a
span of 30 years, the study attracted 11,790 male volunteers in the cities of Atlanta,
Brunswick, Savannah, and Valdosta who were older than 30 when they began the
study. Thirty years later it was determined that 2,790 had Type-2 diabetes. From these
results, it was determined that males consuming 50 or more grams of sugar per day
were 27% more likely to have Type-2 diabetes than those males avoiding such sugar
consumption habits.
Which of the following best describes the sample is for this study?
, the 11,790 male volunteers who participated in the study
the 2,790 males in the study that had Type-2 diabetes
the males over 30 years old in Georgia
the males over 30 years old living in Atlanta, Brunswick, Savannah, and Valdosta -
ANSWER-the 11,790 male volunteers who participated in the study
A study was conducted to determine if the consumption of more than 50 grams of sugar
per day by males over 30 year old leads to an increased risk of Type-2 diabetes. Over a
span of 30 years, the study attracted 11,790 male volunteers in the cities of Atlanta,
Brunswick, Savannah, and Valdosta who were older than 30 when they began the
study. Thirty years later it was determined that 2,790 had Type-2 diabetes. From these
results, it was determined that males consuming 50 or more grams of sugar per day
were 27% more likely to have Type-2 diabetes than those males avoiding such sugar
consumption habits.
Which of the following best describes who the target population is for this study?
the males over 30 years old living in Atlanta, Brunswick, Savannah, and Valdosta
the 11,790 male volunteers who participated in the study
all males over 30 year olds
the males over 30 years old in Georgia - ANSWER-all males over 30 year olds
After owners of the Vaden of Beaufort Chevrolet began to complain about the increased
cost of gas, a salesman decided to see if measures could be taken to decrease the
extra cost. As a result, the car salesman recorded the total driving distance a person
takes during a test drive.
Which of the following choices would be an accurate description of the way the "total
driving distance during the test drive" is used in this data set?
The total driving distance during the test drive is an example of an individual.
The total driving distance during the test drive is an example of a continuous
quantitative variable.
The total driving distance during the test drive is an example of a discrete quantitative
variable.
The total driving distance during the test drive is an example of a continuous qualitative
variable.
The total driving distance during the test drive is an example of a discrete qualitative
variable. - ANSWER-The total driving distance during the test drive is an example of a
continuous quantitative variable.
An expression can contain multiple comparisons, and they all must hold in order for the
whole expression to be True. What is the result of the following expression?
1<1+3<3
True
False - ANSWER-False
Complete Solutions
_______ are given to values in Python using an assignment statement.
Expressions
Operators
Names
Programs - ANSWER-
A distribution is skewed right. Which of the following statements is true about the
distribution?
Mean < Median
Mean > Median
Mean = Median
A relationship between the mean and median can not be determined from the given
information - ANSWER-Mean > Median
A relationship between a treatment and the outcome must indicate a causality. In
another word, a person tried a medicine and felt better, does it indicate the medicine
healed him/her?
True
False - ANSWER-False
A restaurant surveys its patrons to find their favorite item on the menu. What is the level
of measurement of the data?
Nominal
Ordinal
Interval
Ratio - ANSWER-Nominal
A study was conducted to determine if the consumption of more than 50 grams of sugar
per day by males over 30 year old leads to an increased risk of Type-2 diabetes. Over a
span of 30 years, the study attracted 11,790 male volunteers in the cities of Atlanta,
Brunswick, Savannah, and Valdosta who were older than 30 when they began the
study. Thirty years later it was determined that 2,790 had Type-2 diabetes. From these
results, it was determined that males consuming 50 or more grams of sugar per day
were 27% more likely to have Type-2 diabetes than those males avoiding such sugar
consumption habits.
Which of the following best describes the sample is for this study?
, the 11,790 male volunteers who participated in the study
the 2,790 males in the study that had Type-2 diabetes
the males over 30 years old in Georgia
the males over 30 years old living in Atlanta, Brunswick, Savannah, and Valdosta -
ANSWER-the 11,790 male volunteers who participated in the study
A study was conducted to determine if the consumption of more than 50 grams of sugar
per day by males over 30 year old leads to an increased risk of Type-2 diabetes. Over a
span of 30 years, the study attracted 11,790 male volunteers in the cities of Atlanta,
Brunswick, Savannah, and Valdosta who were older than 30 when they began the
study. Thirty years later it was determined that 2,790 had Type-2 diabetes. From these
results, it was determined that males consuming 50 or more grams of sugar per day
were 27% more likely to have Type-2 diabetes than those males avoiding such sugar
consumption habits.
Which of the following best describes who the target population is for this study?
the males over 30 years old living in Atlanta, Brunswick, Savannah, and Valdosta
the 11,790 male volunteers who participated in the study
all males over 30 year olds
the males over 30 years old in Georgia - ANSWER-all males over 30 year olds
After owners of the Vaden of Beaufort Chevrolet began to complain about the increased
cost of gas, a salesman decided to see if measures could be taken to decrease the
extra cost. As a result, the car salesman recorded the total driving distance a person
takes during a test drive.
Which of the following choices would be an accurate description of the way the "total
driving distance during the test drive" is used in this data set?
The total driving distance during the test drive is an example of an individual.
The total driving distance during the test drive is an example of a continuous
quantitative variable.
The total driving distance during the test drive is an example of a discrete quantitative
variable.
The total driving distance during the test drive is an example of a continuous qualitative
variable.
The total driving distance during the test drive is an example of a discrete qualitative
variable. - ANSWER-The total driving distance during the test drive is an example of a
continuous quantitative variable.
An expression can contain multiple comparisons, and they all must hold in order for the
whole expression to be True. What is the result of the following expression?
1<1+3<3
True
False - ANSWER-False