Multiple Choice
Case Study 1:
1. def readFile(filename ) :
2. with open(filename , "r") as dataFile
3. dataDict = {}
4.
5. key = 0
6. for aLine in dataFile:
7. key = key + 1
8. score = int(aLine)
9.
10. dataDict[key] = [score]
11.
12. return dataDict
-Refer to the session in the accompanying Case Study 1. What happens in Line 10?
A) The score is entered in the dictionary associated with the key.
B) The line is read from the file.
C) The key is computed.
D) The file is opened.
Correct Answer:

Verified
Correct Answer:
Verified
Q1: How do you retrieve a random data
Q2: What best describes the type of iteration
Q3: In the K-means algorithm, the number of
Q4: Case Study 3:<br>>>> aLine = next(csvReader)<br>>>> aLine<br>['3.7',
Q6: Case Study 3:<br>>>> aLine = next(csvReader)<br>>>> aLine<br>['3.7',
Q7: Case Study 2:<br>1. total = 0<br>2. aNum
Q8: The process of "visualizing" data can be
Q9: What is the problem with the loop
Q10: One of the weaknesses of the K-means
Q11: Once the turtle has been directed to