← Back to 15. Security

πŸ“ Encryption as a Security Tool

πŸ“– 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

2
Easy Questions
4
Medium Questions
3
Hard Questions

πŸ“ Sample Questions

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?

πŸ”Ή A. Overwrite the saved frame pointer
πŸ”Ή B. Overwrite the return address
πŸ”Ή C. Overwrite the buffer size variable
πŸ”Ή D. Overwrite a global variable

πŸ’‘ 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?

πŸ”Ή A. 42
πŸ”Ή B. 38
πŸ”Ή C. 44
πŸ”Ή D. 50

πŸ’‘ 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?

πŸ”Ή A. Stack canaries
πŸ”Ή B. Address Space Layout Randomization (ASLR)
πŸ”Ή C. Non‑executable stack (NX)
πŸ”Ή D. All of the above

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

⬆️ 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