0
0
Intro to Computingfundamentals~10 mins

Mobile apps vs desktop applications in Intro to Computing - Interactive Practice

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

Complete the code to identify the platform type.

Intro to Computing
platform = '[1]'  # Choose the platform type
Drag options to blanks, or click blank then click option'
Amobile
Bdesktop
Cserver
Dweb
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'desktop' instead of 'mobile' for mobile apps.
2fill in blank
medium

Complete the code to check if the application is a desktop app.

Intro to Computing
if app_type == '[1]':
    print('Running on desktop')
Drag options to blanks, or click blank then click option'
Adesktop
Bcloud
Cweb
Dmobile
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'mobile' instead of 'desktop' in the condition.
3fill in blank
hard

Fix the error in the code that distinguishes app types.

Intro to Computing
def is_mobile(app):
    return app == '[1]'
Drag options to blanks, or click blank then click option'
Aweb
Bdesktop
Cmobile
Dserver
Attempts:
3 left
💡 Hint
Common Mistakes
Returning 'desktop' instead of 'mobile'.
4fill in blank
hard

Fill both blanks to create a dictionary mapping app types to their platforms.

Intro to Computing
app_platforms = {
    'WhatsApp': '[1]',
    'Photoshop': '[2]'
}
Drag options to blanks, or click blank then click option'
Amobile
Bdesktop
Cweb
Dcloud
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the platforms for WhatsApp and Photoshop.
5fill in blank
hard

Fill all three blanks to filter mobile apps from a list.

Intro to Computing
apps = ['WhatsApp', 'Photoshop', 'Instagram', 'Excel']
mobile_apps = [app for app in apps if app [1] ['WhatsApp', [2], [3]]]
Drag options to blanks, or click blank then click option'
Ain
B'Instagram'
C'Snapchat'
D'Excel'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '==' instead of 'in' for membership check.
Including desktop apps like Excel in the mobile apps list.