Complete the code to define the Access Control Matrix as a table of subjects and objects.
access_control_matrix = {"subjects": ["Alice", "Bob"], "objects": ["File1", [1]]}The Access Control Matrix lists objects such as files or resources. "File2" is a valid object name to include.
Complete the code to assign read permission to Alice for File1.
access_control_matrix["permissions"] = {"Alice": {"File1": [1]
Read permission allows Alice to view the contents of File1, which is a common access right.
Fix the error in the code to correctly represent the Access Control Matrix entry for Bob's execute permission on File2.
access_control_matrix["permissions"]["Bob"]["File2"] = [1]
The permission must be a string enclosed in double quotes exactly as "execute" to be valid.
Fill both blanks to create a dictionary entry for Carol with write permission on Folder1.
access_control_matrix["permissions"][[1]] = { [2]: "write" }
Carol is the subject, and Folder1 is the object with write permission assigned.
Fill all three blanks to define a new entry where Dave has read and execute permissions on Printer1.
access_control_matrix["permissions"][[1]] = { [2]: ["read", [3]] }
Dave is the subject, Printer1 is the object, and the permissions are read and execute.