π From Operating System β’ 15. Security β’ 12 questions available
Practice MCQs for Implementation of cryptography. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.
π Last updated: 2026-07-27
Q1. A program allocates a char buffer[64] on the stack and copies user input using strcpy. Which of the following actions will cause the function to return to attackerβcontrolled code?
π‘ Difficulty: easy | β Correct: C
Q2. Given a stack frame where buffer occupies bytes 0β79, the saved frame pointer occupies bytes 80β87, and the return address occupies bytes 88β95, how many bytes must the attacker write to reach the return address?
π‘ Difficulty: medium | β Correct: B
Q3. An exploit overwrites the return address with the address of buffer[0]. On a system that uses Address Space Layout Randomization (ASLR), why is this approach unreliable?
π‘ Difficulty: hard | β Correct: A
β¬οΈ View all questions in the quiz below