0
0
Intro to Computingfundamentals~10 mins

Operating system role and examples in Intro to Computing - Interactive Code Practice

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

Complete the code to print the main role of an operating system.

Intro to Computing
print('The main role of an operating system is to manage [1].')
Drag options to blanks, or click blank then click option'
Ahardware
Bsoftware
Capplications
Dnetworks
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing software or applications instead of hardware.
2fill in blank
medium

Complete the code to list an example of an operating system.

Intro to Computing
example_os = '[1]'
print(f'An example of an operating system is {example_os}.')
Drag options to blanks, or click blank then click option'
AGoogle Chrome
BWindows
CMicrosoft Word
DAdobe Photoshop
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing application software instead of an OS.
3fill in blank
hard

Fix the error in the code to show the OS managing memory.

Intro to Computing
def manage_memory():
    print('Operating system manages [1] allocation.')

manage_memory()
Drag options to blanks, or click blank then click option'
Amemory
Bsoftware
Cfiles
Dnetworks
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing memory with files or networks.
4fill in blank
hard

Fill both blanks to create a dictionary of OS examples and their types.

Intro to Computing
os_examples = {'Windows': '[1]', 'Linux': '[2]'}
print(os_examples)
Drag options to blanks, or click blank then click option'
Aproprietary
Bopen-source
Capplication
Dhardware
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing application or hardware terms with OS types.
5fill in blank
hard

Fill the blank to create a dictionary comprehension filtering OS names starting with 'W'.

Intro to Computing
filtered_os = {name: type_ for name, type_ in os_examples.items() if name.[1]('W')}
print(filtered_os)
Drag options to blanks, or click blank then click option'
Aendswith
B!=
C==
Dstartswith
Attempts:
3 left
💡 Hint
Common Mistakes
Using equality operators instead of string methods.