CTEC 128 - Discrete Structures Using Big Data » Spring 2023 » Quiz 2

Need help with your exam preparation?

Question #1
You are asked to rephrase the following question so that it is not biased: Where do you like to party on the weekends? Which would be the best replacement for this question?
A.   What do you like to do on the weekends?
B.   Do you like to party or stay home on the weekends?
C.   When you party on the weekends, where do you like to go?
D.   It is not biased as is.
Question #2
Which of the following variable names best follows all of the correct naming conventions?
A.   Quiz-Answer
B.   favorite_number
C.   2nd_item
D.   list
Question #3
Which question is unbiased?
A.   Would you prefer to eat a delicious steak or a plain sandwich?
B.   Why is it best for a dress code to exist?
C.   How many hours do you typically sleep per night?
D.   Should concerned dog owners vaccinate their pets?
Question #4
What will be the output of the following code snippet? score = 95 print(type(score))
A.   <class 'char'>
B.   <class 'int'>
C.   <class 'str'>
D.   <class 'float'>
Question #5
Which of the following pandas commands will display the number of rows and columns in a dataframe?
A.   print(df.columns)
B.   print(df.describe())
C.   print(df.shape)
D.   print(df.dtypes)
Question #6
In which phase of the data science life cycle would a researcher be most concerned with the possibility of confirmation bias?
A.   Analyze Data
B.   Interpret Data
C.   Consider Data
D.   Ask Questions
Question #7
What will be printed to the screen when the following program is run? my_list = [1,2,3,4,5] print(max(my_list) + sum(my_list)]
A.   20
B.   6
C.   16
D.   15
Question #8
Which of the following pandas commands will list the datatypes of all columns in a dataframe?
A.   print(df.shape)
B.   print(df.datatypes)
C.   print(df.types)
D.   print(df.dtypes)

Need help with your exam preparation?