This set of Data Structures & Algorithms Multiple Choice Questions & Answers (MCQs) focuses on “Autokey Cipher”.
1. What is the meaning of cipher in cryptography?
a) an algorithm that performs encryption
b) an algorithm that generates a secret code
c) an algorithm that performs encryption or decryption
d) a secret code
Explanation: Cipher is an algorithm for performing encryption or decryption. In cryptography, a set of defined steps are followed to generate ciphers. These are necessary to prevent a data breach.
2. Autokey cipher is an example of ___________
a) mono-alphabetic cipher
b) poly-alphabetic cipher
c) transposition cipher
d) additive cipher
Explanation: Autokey cipher is a substitution cipher. It falls under the category of poly alphabetic cipher as it uses multiple substitutions at different positions in order to cipher the plain text.
3. Encryption in Autokey cipher is done using ___________
a) vigenere formula
b) vigenere cycle
c) vigenere table
d) vigenere addition
Explanation: Encryption of plain text in Autokey cipher is done using the same table which is used for encryption in vigenere cipher. It is known as vigenere table.
4. Which of the following correctly defines poly alphabetic cipher?
a) a substitution based cipher which uses multiple substitution at different positions
b) a substitution based cipher which uses fixed substitution over entire message
c) a transposition based cipher which uses multiple substitution at different positions
d) a transposition based cipher which uses fixed substitution over entire message
Explanation: Poly alphabetic cipher is a type of substitution cipher. It uses multiple substitution at different positions in order to cipher the plain text.
5. Which of the following is not a type of poly alphabetic cipher?
a) Autokey cipher
b) Hill cipher
c) One time pad cipher
d) Additive cipher
Explanation: In poly alphabetic cipher each symbol of plain text is replaced by a different cipher text regardless of its occurrence. Out of the given options only additive cipher is not a poly alphabetic cipher.
6. Autokey cipher is closely related to ___________
a) Vigenere cipher
b) Hill cipher
c) Play fair cipher
d) Rotor cipher
Explanation: Autokey cipher like vigenere cipher uses vigenere table in order to encrypt the plain text. The difference in these cipher is the usage of the keyword.
7. Autokey cipher is harder to crack than keyword cipher.
Explanation: Keyword cipher is less secure than Autokey cipher. It is due to the fact that keyword cipher is mono alphabetic and thus can be cracked using frequency analysis. But Autokey cipher being a poly alphabetic cipher cannot be cracked using this method.
8. What will be the plain text corresponding to cipher text “ZEYQC” if autokey cipher is used with keyword as “SANFOUNDRY”?
Explanation: Autokey cipher is a type of poly alphabetic substitution which uses vigenere table for making substitutions in the plain text after generating key using plain text. Using the table we find the plain text to be “HELLO”.
9. Autokey cipher is also known as?
a) vigenere cipher
b) autoclave cipher
c) auto key cipher
d) auto cipher
Explanation: Autoclave cipher is an alternative name given to autokey cipher. It is because the encrypted text is formed using a key that is generated from a message(plain text) itself.
10. In which of the following cipher the plain text and the ciphered text does not have same number of letters?
a) affine cipher
b) autokey cipher
c) columnar cipher
d) additive cipher
Explanation: In transposition cipher and mono alphabetic cipher the number of letters remain same in ciphered and deciphered text. But in poly alphabetic cipher the number of letters are different. So here as autokey cipher is the only poly alphabetic cipher so it will be the answer.
11. What will be the ciphered text if the string “SECRET” is given as input to the code of autokey cipher with keyword as “SANFOUNDRY”?
Explanation: For encrypting a plain text in autokey cipher we first add the keyword at the beginning of the plain text in order to obtain the key for encryption. Then we use the vigenere table for making respective substitutions.
12. Vigenere cipher is harder to crack than autokey cipher.
Explanation: Autokey cipher is harder to crack than vigenere cipher. It is because in autokey cipher the key is formed using the plain text itself whereas in vigenere cipher the key is independent of the plain text. This makes autokey cipher more secure.
Sanfoundry Global Education & Learning Series – Data Structures & Algorithms.
To practice all areas of Data Structures & Algorithms, here is complete set of 1000+ Multiple Choice Questions and Answers.
Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!