← Back to 14. Protection

πŸ“ Principles of Protection in Operating System

πŸ“– From Operating System β€’ 14. Protection β€’ 12 questions available

Practice MCQs for Principles of Protection in Operating System. Test your knowledge with carefully crafted questions across easy, medium, and hard difficulty levels.

πŸ”„ Last updated: 2026-07-27

2
Easy Questions
6
Medium Questions
4
Hard Questions

πŸ“ Sample Questions

Q1. What is the definition of the principle of least privilege?

πŸ”Ή A. Every user must have administrator rights at all times.
πŸ”Ή B. Each program receives exactly the permissions needed to perform its intended function.
πŸ”Ή C. All processes share the same set of system privileges.
πŸ”Ή D. Privileges are granted only after a security audit.

πŸ’‘ Difficulty: easy | βœ… Correct: A

Q2. A web server daemon runs with root privileges. An attacker exploits a bug and gains control of the daemon. Which outcome best illustrates the danger of not following least privilege?

πŸ”Ή A. The attacker can modify any file on the system, including system binaries.
πŸ”Ή B. The attacker can only read the server’s log files.
πŸ”Ή C. The attacker can restart the web service but cannot affect other processes.
πŸ”Ή D. The attacker is limited to sending malformed HTTP responses.

πŸ’‘ Difficulty: medium | βœ… Correct: A

Q3. A system call interface offers functions A, B, C, and D. Function C allows a process to change its own UID to any user ID. Which function most clearly violates the principle of least privilege?

πŸ”Ή A. Function A: read a file
πŸ”Ή B. Function B: write to a log
πŸ”Ή C. Function C: change UID arbitrarily
πŸ”Ή D. Function D: query system time

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

⬆️ View all questions in the quiz below

πŸ”— Related Topics

πŸ“ Goals of Protection in Operating SystemπŸ“ Domain of Protection in Operating SystemπŸ“ Domain structure for protection in Operating SystemπŸ“ UNIX example of protection in Operating SystemπŸ“ MULTICS example of protection in Operating System
πŸš€ Start Quiz πŸ“ Practice Mode