Computer Science · Cryptography and Ciphers
Consider a 4-bit plaintext and ciphertext system using a 3-bit key K. The encryption algorithm takes the 1st and 3rd bits of K, interprets these two bits as a decimal integer, squares it, and converts the result into a 4-bit binary pattern which is then XORed with the plaintext. If plaintext = 0111 and key K = 101, what are the ciphertext and the decrypted original text?
- 11100 and 0011
- 21100 and 1001
- 31001 and 1100
- 41110 and 0111✓
Correct answer
1110 and 0111
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Cryptography and Ciphers?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Cryptography and Ciphers