← Back to 15. Security

πŸ“ Cryptography as a Security Tool

πŸ“– From Operating System β€’ 15. Security β€’ 10 questions available

Practice MCQs for Cryptography as a Security Tool. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.

πŸ”„ Last updated: 2026-07-27

2
Easy Questions
5
Medium Questions
3
Hard Questions

πŸ“ Sample Questions

Q1. An attacker crafts input that overflows a buffer and overwrites the saved return address. Which step guarantees that execution jumps to the injected shellcode?

πŸ”Ή A. Overwrite the saved frame pointer
πŸ”Ή B. Overwrite the return address
πŸ”Ή C. Place a NOP sled before the buffer
πŸ”Ή D. Increase the buffer size

πŸ’‘ Difficulty: easy | βœ… Correct: B

Q2. A developer adds a random canary value before the return address to protect against overflow. Which mechanism best stops the attack?

πŸ”Ή A. Use of a NOP sled
πŸ”Ή B. Disabling the debugger
πŸ”Ή C. Inserting a random canary before the return address
πŸ”Ή D. Removing the vulnerable buffer

πŸ’‘ Difficulty: medium | βœ… Correct: C

Q3. A program has a 64‑byte buffer, the return address is located 8 bytes after the buffer, and the attacker’s shellcode is 20 bytes long. How many NOP bytes must precede the shellcode to fill the buffer completely?

πŸ”Ή A. 12
πŸ”Ή B. 20
πŸ”Ή C. 44
πŸ”Ή D. 8

πŸ’‘ Difficulty: hard | βœ… Correct: C

⬆️ View all questions in the quiz below

πŸ”— Related Topics

πŸ“ The Security Problem in Operating SystemπŸ“ Program Threats in Operating SystemπŸ“ Trojan horseπŸ“ Trap doorπŸ“ Logic bomb
πŸš€ Start Quiz πŸ“ Practice Mode