Multiple Choice
Case Study 2:
1. def scramble2Encrypt(plainText) :
2. evenChars = ""
3. oddChars = ""
4. charCount = 0
5. for ch in plainText:
6. if charCount % 2 == 0:
7. evenChars = evenChars + ch
8. else:
9. oddChars = oddChars + ch
10. charCount = charCount + 1
11. cipherText = oddChars + evenChars
12. return cipherText
-Refer to the code in the accompanying case study 2. What type of cipher has been implemented?
A) Transposition
B) Accumulator
C) Substitution
D) Vignère
Correct Answer:

Verified
Correct Answer:
Verified
Q23: What is the operator represented by the
Q24: What is the string concatenation operator in
Q25: Match each line of code with a
Q26: What does the term "string" refer to
Q27: Case Study 2:<br>1. def scramble2Encrypt(plainText):<br>2. evenChars =
Q28: What is the advantage of a substitution
Q29: What method can be used to surround
Q30: How effective is a brute force approach
Q31: What function converts a character to its
Q33: Describe the functionality of the string index