← Back to 15. Security

📝 Authentication as a Security Tool

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

Practice MCQs for Authentication as a Security Tool. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.

🔄 Last updated: 2026-07-27

3
Easy Questions
8
Medium Questions
5
Hard Questions

📝 Sample Questions

Q1. What is the purpose of a NOP sled in a buffer‑overflow exploit?

🔹 A. To align stack frames
🔹 B. To pad the payload so the return address lands within executable code
🔹 C. To encrypt the shellcode
🔹 D. To disable security checks

💡 Difficulty: easy | ✅ Correct: A

Q2. Why does overwriting the return address allow the injected shellcode to run with the same privileges as the vulnerable program?

🔹 A. The operating system treats any code at that address as trusted
🔹 B. The overwritten address is executed in the same process context
🔹 C. The CPU ignores privilege checks for return instructions
🔹 D. The compiler automatically elevates the injected code’s rights

💡 Difficulty: medium | ✅ Correct: A

Q3. Why is Address Space Layout Randomization (ASLR) effective against static‑address buffer‑overflow exploits?

🔹 A. It encrypts the shellcode
🔹 B. It randomizes the location of the stack, heap, and libraries
🔹 C. It disables the use of return instructions
🔹 D. It forces all binaries to be compiled as position‑independent

💡 Difficulty: hard | ✅ Correct: A

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