← Back to 15. Security

📝 Asymmetric encryption as a Security Tool

📖 From Operating System • 15. Security • 11 questions available

Practice MCQs for Asymmetric 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
5
Hard Questions

📝 Sample Questions

Q1. What is a buffer overflow in the context of stack memory?

🔹 A. An error that occurs when a program reads from an uninitialized variable
🔹 B. An error that occurs when data exceeds the allocated space for a buffer, overwriting adjacent memory
🔹 C. A technique to encrypt data using asymmetric keys
🔹 D. A method to compress files

💡 Difficulty: easy | ✅ Correct: B

Q2. A program copies user input from argv[1] into a local array buffer[64] using strcpy without bounds checking. Which step is most critical for an attacker to gain control of execution?

🔹 A. Overwriting the saved frame pointer
🔹 B. Overwriting the saved return address
🔹 C. Injecting a large amount of NOPs before the shellcode
🔹 D. Changing the environment variable PATH

💡 Difficulty: medium | ✅ Correct: B

Q3. A vulnerable function uses strcpy(buf, input) where buf is 48 bytes long. The attacker discovers that the saved return address is 56 bytes from the start of buf. What offset (in bytes) must the attacker use to reach the return address?

🔹 A. 48
🔹 B. 56
🔹 C. 64
🔹 D. 72

💡 Difficulty: hard | ✅ Correct: B

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