π From Operating System β’ 15. Security β’ 9 questions available
Practice MCQs for Encryption as a Security Tool. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.
π Last updated: 2026-07-27
Q1. A program copies user input into a local array named buffer[0..63] and then returns from main. Which stack element must the attacker overwrite to hijack execution?
π‘ Difficulty: easy | β Correct: B
Q2. Given a buffer of size \(64\) bytes, a shellcode of \(30\) bytes, a saved frame pointer occupying \(8\) bytes, and a return address located immediately after the saved frame pointer, how many NOP bytes must the attacker add to reach the return address?
π‘ Difficulty: medium | β Correct: A
Q3. A setβuid root program contains a stack buffer overflow. Which mitigation alone would stop the injected shellcode from executing, even if the return address is overwritten?
π‘ Difficulty: hard | β Correct: D
β¬οΈ View all questions in the quiz below