Multiple Choice
Case Study 1:
1. def railBreak(cipherText) :
2. wordDict = createWordDict('wordlist.txt')
3. cipherLen = len(cipherText)
4. maxGoodSoFar = 0
5. bestGuess = "No words found in dictionary"
6. for i in range(2, cipherLen + 1) :
7. words = railDecrypt(cipherText, i)
8. goodCount = 0
9. for w in words:
10. if w in wordDict:
11. goodCount = goodCount + 1
12. if goodCount > maxGoodSoFar:
13. maxGoodSoFar = goodCount
14. bestGuess = " ".join(words)
15. return bestGuess
-Refer to the session in the accompanying case study. What is the function of
" ") join(words) on line 14?
A) It glues together all of the strings in the list words separating them using the space character.
B) It creates a dictionary of all the words in the list words.
C) It separates each word in the list words into a range.
D) It sets all of the values in words to a single space.
Correct Answer:

Verified
Correct Answer:
Verified
Q7: If we want to store a two-dimensional
Q8: Describe the use of brute force to
Q9: Match each definition with its term.<br>-Allow us
Q10: What of the following is one of
Q11: Case Study 2:<br>1. def maybeAdd(ch, toList):<br>2. if
Q13: Describe the use of the join method.
Q14: How can a dictionary be used to
Q15: Describe the two keyword parameters to the
Q16: Match each definition with its term.<br>-Refers to
Q17: Case Study 1:<br>1. def railBreak(cipherText):<br>2. wordDict =