π 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
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?
π‘ 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?
π‘ 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?
π‘ Difficulty: hard | β Correct: C
β¬οΈ View all questions in the quiz below