0
0
Operating Systemsknowledge~10 mins

Access control matrix in Operating Systems - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define the Access Control Matrix as a table of subjects and objects.

Operating Systems
access_control_matrix = {"subjects": ["Alice", "Bob"], "objects": ["File1", [1]]}
Drag options to blanks, or click blank then click option'
A"Folder1"
B"File3"
C"File2"
D"Printer1"
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a subject name instead of an object name.
Using a resource name that is not typical for access control.
2fill in blank
medium

Complete the code to assign read permission to Alice for File1.

Operating Systems
access_control_matrix["permissions"] = {"Alice": {"File1": [1]
Drag options to blanks, or click blank then click option'
A"write"
B"read"
C"execute"
D"delete"
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing read with write or execute permissions.
Using a permission that is not typical for file access.
3fill in blank
hard

Fix the error in the code to correctly represent the Access Control Matrix entry for Bob's execute permission on File2.

Operating Systems
access_control_matrix["permissions"]["Bob"]["File2"] = [1]
Drag options to blanks, or click blank then click option'
Aexecute
B"Execute"
C'execute'
D"execute"
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting quotes around the permission string.
Using incorrect capitalization.
4fill in blank
hard

Fill both blanks to create a dictionary entry for Carol with write permission on Folder1.

Operating Systems
access_control_matrix["permissions"][[1]] = { [2]: "write" }
Drag options to blanks, or click blank then click option'
A"Carol"
B"Alice"
C"Folder1"
D"File1"
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping subject and object names.
Using a subject or object not defined in the matrix.
5fill in blank
hard

Fill all three blanks to define a new entry where Dave has read and execute permissions on Printer1.

Operating Systems
access_control_matrix["permissions"][[1]] = { [2]: ["read", [3]] }
Drag options to blanks, or click blank then click option'
A"Dave"
B"Printer1"
C"execute"
D"File3"
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect object or subject names.
Not including both permissions correctly.