0
0
Operating Systemsknowledge~10 mins

Capability-based security 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 sentence to define capability-based security.

Operating Systems
In capability-based security, a [1] is a communicable, unforgeable token of authority.
Drag options to blanks, or click blank then click option'
Acapability
Bpassword
Cfirewall
Dencryption
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing capabilities with passwords or encryption.
2fill in blank
medium

Complete the sentence to explain how capabilities are used.

Operating Systems
A process must present a valid [1] to access a resource in capability-based security.
Drag options to blanks, or click blank then click option'
Atoken
Bcertificate
Cusername
Dcapability
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing general terms like 'token' or 'certificate' instead of the specific term.
3fill in blank
hard

Fix the error in the statement about capability-based security.

Operating Systems
[1] are used to restrict access by identity rather than by possession of tokens.
Drag options to blanks, or click blank then click option'
Aaccess control lists
Bpasswords
Ccapabilities
Dencryption keys
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing capabilities with ACLs or passwords.
4fill in blank
hard

Fill both blanks to complete the dictionary comprehension that filters capabilities with read access.

Operating Systems
read_caps = {obj: cap for obj, cap in caps.items() if cap [1] 'read' and cap [2] 'write'}
Drag options to blanks, or click blank then click option'
A==
B!=
Cand
Dor
Attempts:
3 left
💡 Hint
Common Mistakes
Using logical operators incorrectly or mixing equality and inequality.
5fill in blank
hard

Fill all three blanks to create a dictionary of capabilities with 'execute' permission and object names in uppercase.

Operating Systems
exec_caps = [1]: cap for obj, cap in caps.items() if cap [2] 'execute' and obj.[3]()
Drag options to blanks, or click blank then click option'
Aobj.upper()
B==
Cupper
D!=
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing method names or using wrong comparison operators.