Free Practice Quiz Question List

9 Protection and Operating-System Design Online Quiz Questions

Use this free practice quiz with 20 questions to review 9 Protection and Operating-System Design, test your knowledge, and prepare for your next test or exam.

20 questions
01
Choose one
1 point

A user has successfully proved their identity. Before allowing that user to open a particular file, which step determines whether the user has permission to do so?

  1. A

    Authentication

  2. B

    Authorization

  3. C

    Access enforcement

  4. D

    Isolation

02
True or false
1 point

True or false: If an operating system has protection mechanisms, its resources are guaranteed to be secure even when those mechanisms are incorrectly implemented.

  1. A

    True

  2. B

    False

03
Written response
1 point

A file-processing service needs to read input files but does not need to modify them or access unrelated system resources. Which security principle should guide the permissions granted to the service?

04
Fill in the blank
1 point

A program needs the kernel to perform a privileged operation. It should request the service through a .

05
Choose one
1 point

Two processes need to exchange data through shared memory. Which operating-system design best preserves isolation while enabling this communication?

  1. A

    Allow each process to access all memory so sharing is easy.

  2. B

    Prevent any sharing, even when the processes need it.

  3. C

    Keep the processes isolated by default and deliberately establish the required shared access.

  4. D

    Let the processes decide independently which memory protections to ignore.

06
Fill in the blank
1 point

When concurrent threads might perform conflicting operations on shared data, mechanisms such as locks provide .

07
Written response
1 point

An operating system should avoid letting one activity monopolize resources indefinitely. What design goal does this support?

08
True or false
1 point

True or false: To provide isolation, an operating system must forbid every form of sharing between processes.

  1. A

    True

  2. B

    False

09
Choose all
1 point

A team is redesigning a kernel service that accepts requests from user programs. Which actions support a more protected design? Select all that apply.

  1. A

    Check and validate requests before a kernel service performs a privileged operation.

  2. B

    Keep privileged interfaces and components as small and understandable as practical.

  3. C

    Allow a kernel service to trust all input from user programs without checking it.

  4. D

    Give every component the authority to access every resource so requests never fail.

10
Choose one
1 point

A process is permitted to read a configuration file but has not been granted write permission. What should the operating system do when the process requests a write?

  1. A

    Allow the write because the process can already read the file.

  2. B

    Deny the write if the process has read permission but not write permission.

  3. C

    Allow the write if the file is stored on a protected device.

  4. D

    Deny all access to the file because read and write permissions must always be identical.

11
Choose all
1 point

A kernel service accepts unchecked input that can corrupt kernel memory. Which consequences are consistent with the operating-system design risks described? Select all that apply.

  1. A

    The unchecked input could corrupt kernel memory.

  2. B

    The resulting failure could potentially affect every process on the machine.

  3. C

    The failure would necessarily be confined to the requesting process's virtual address space.

  4. D

    File permissions would automatically prevent any kernel memory corruption.

12
Choose one
1 point

A user process needs to request an operation from a hardware device. Which approach best follows the operating system's device-protection model?

  1. A

    Let the process directly control the device hardware.

  2. B

    Have the process request device operations through operating-system interfaces.

  3. C

    Allow access only if the process has its own virtual address space.

  4. D

    Use scheduling alone to authorize the device operation.

13
Open ended
1 point

A file-processing system uses several worker processes. Each worker needs access to some files, and two workers must share selected data. Describe a protection design that limits the damage from a compromised or malfunctioning worker while still supporting the required work.

14
Choose one
1 point

A process may read a configuration file but may not modify it. Which description correctly identifies the subject, object, and permitted operation?

  1. A

    The process is the subject, the configuration file is the object, and read is allowed while write is denied.

  2. B

    The configuration file is the subject, the process is the object, and write is allowed while read is denied.

  3. C

    The process is the object, the configuration file is a right, and both operations are allowed.

  4. D

    The process is the subject, and authentication alone determines whether it may modify the file.

15
True or false
1 point

True or false: Operating-system isolation forbids all sharing of memory and other resources between processes.

  1. A

    True

  2. B

    False

16
Choose one
1 point

A service needs to read one data file and send results through a specific interface. Which permission strategy best applies least privilege?

  1. A

    Give every component broad permissions so it can handle unexpected tasks without delay.

  2. B

    Give each component only the permissions and resources its task requires.

  3. C

    Give each component the same permissions as the operating-system kernel.

  4. D

    Grant permissions based only on whether a component has been authenticated.

17
Written response
1 point

What is the security term for determining what an identified user or process is permitted to do?

18
Written response
1 point

Under secure defaults, what should generally happen to access when permission has not been explicitly granted?

19
Choose one
1 point

Which description best explains how virtual memory and system calls jointly limit a program's direct access to protected resources?

  1. A

    Virtual address spaces let programs directly access kernel memory, while system calls are used only for file operations.

  2. B

    System calls give programs unrestricted hardware access, while shared memory bypasses operating-system control.

  3. C

    Virtual address spaces restrict direct memory access, and system calls let programs request kernel services that the kernel checks.

  4. D

    Virtual address spaces prevent all sharing, so programs cannot use shared memory even when it is deliberately established.

20
Choose one
1 point

How can CPU scheduling support system availability?

  1. A

    It helps prevent one activity from monopolizing CPU resources indefinitely.

  2. B

    It verifies that each process has permission to read every file it requests.

  3. C

    It ensures that concurrent processes cannot share data.

  4. D

    It replaces access checks for devices by granting each process direct hardware control.