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 1. What pattern is used on lines 12-14?
A) Minmax
B) Rail break
C) Cryptology
D) Brute force
Correct Answer:

Verified
Correct Answer:
Verified
Q12: Case Study 1:<br>1. def railBreak(cipherText):<br>2. wordDict =
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
Q18: What three-letter word appears most often in
Q19: Explain how to identify the difference between
Q20: Some of the first computer scientists were
Q21: In a regular expression, a part of
Q22: Match each definition with its term.<br>-Refers to