For the declaration myString = 'Python is fun', what is myString[7]?
i
What will happen if we run this snippet of code?

Error - missing colon (:) at the end of if statement.
From the following contingency table, what percent of people define the range of those who have a MS degree and make $50K?

9.7 %
Given the following code listing, what would be a possible output?

{False, True, 2, 'one'}
What is the shape of this matrix?

(3,2)
3 rows and 2 columns
What is output by len(myString)
myString = 'Machine Learning' ?
16
If myList = [0,1,2,3,4,5,6], how many times does the code execute under the following statment:
for element in myList:
7
for loop runs once for each element of the list
Which of the following performs 'standard' matrix multiply? Assume numpy has been imported as np. Check all that apply...
a. '@'
b. 'np.multiply'
c. '*'
d. 'np.dot'
e. None of these
a. '@'
d. 'np.dot'
Given the following code, what would be printed by: print(myList2[1][3])?

5
Compute the mean and median of the following data set: 6, 5, 7, 2, 6, 5, 6, 8, 1
Mean 5.11
Median 6

No Output
(if = false --> Everything inside the if block is skipped)
Given the following code dictionary assignment, how would you change the price of 'Windbreaker' to $50.99?

coatPrice['Windbreaker'] = 50.99
Which of the following is a function that can be used to find missing/empty data in a Pandas data frame?
a. isNone()
b. isNan()
c. is missing()
d. isNull()
d. isNull()
Given the following code what would be printed by: print(station_1(3,3)) ?
's'
(12<10 ) --> False skip the return
What is the shape and size of the resultant matrix if multiplying two matrices of shapes
(2, 3) and (3, 4)?
Shape: (2,4) Size: 8
What does the following code print out?

0 thru 9 on successive lines
0 thru 9 one per line
Given the following code listing, what does line 35 do?

Checks if the number in 2D list is even.
What is the output from the following dot product operation?

[[5, 12], [-11, 7]]
What is printed in the last line of the output for the following code?

5,9
Identify which are outliers in this set of data:
6, 5, 7, 2, 6, 5, 6, 8, 9, 12, 10, 20, 22, 35, 7, 2, 13, 15, 4, 10.
Range -4 thru 22.0
35 is outside the range
Given the following code listing, what is the output when line 11 is executed?

Print 3: deque(['hello', 'python'])
What is printed from the following code listing for line 6?

7, nine
What matplotlib pyplot function can be used to set the range of values on the x and y axes?
xlim(), ylim()
Given the following code listing, what is the output when line 43 is executed?
[[11, 0, 5, 0, 1], [15, 0, 0, 7, 3], [0, 0, 0, 5, 13], [0, 15, 0, 0, 0]]
Compute the standard deviation of the sample data set: 6, 5, 7, 2, 6, 8 (i.e. compute the sample standard deviation).
s=4.27≈2.07