Bird
Raised Fist0
Intro to Computingfundamentals~10 mins

AI in daily life (recommendations, assistants) in Intro to Computing - Interactive Code Practice

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

Complete the code to print a simple greeting from a virtual assistant.

Intro to Computing
print("Hello, I am your [1] assistant!")
Drag options to blanks, or click blank then click option'
Amusic
Bvirtual
Cweather
Dshopping
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a specific type like 'music' or 'weather' instead of 'virtual'.
2fill in blank
medium

Complete the code to check if a recommendation system suggests a movie based on user preference.

Intro to Computing
if user_preference == [1]:
    print("We recommend this movie!")
Drag options to blanks, or click blank then click option'
A"comedy"
B"action"
C"drama"
D"horror"
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting to put quotes around the string value.
3fill in blank
hard

Fix the error in the code that simulates a voice assistant responding to a command.

Intro to Computing
command = "play music"
if command [1] "play music":
    print("Playing your favorite songs.")
Drag options to blanks, or click blank then click option'
A=>
B!=
C==
D=
Attempts:
3 left
💡 Hint
Common Mistakes
Using = instead of == causes syntax errors.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps app names to their AI feature status.

Intro to Computing
ai_features = {app[1]: status for app, status [2] apps.items() if status == True}
Drag options to blanks, or click blank then click option'
A.lower()
Bin
C==
D.upper()
Attempts:
3 left
💡 Hint
Common Mistakes
Using comparison operator == instead of in for iteration.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that filters AI assistants by language and converts names to uppercase.

Intro to Computing
filtered_assistants = [1]: assistant for assistant, language [2] assistants.items() if language [3] "English"}
Drag options to blanks, or click blank then click option'
Aassistant.upper()
Bin
C==
Dassistant.lower()
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up == and =, or using wrong string methods.

Practice

(1/5)
1. What is a common way AI helps in daily life?
easy
A. By fixing hardware problems automatically
B. By making your computer run faster
C. By turning off your devices when not in use
D. By giving smart suggestions based on your preferences

Solution

  1. Step 1: Understand AI's role in daily life

    AI learns from your actions and preferences to help you better.
  2. Step 2: Identify the correct example

    Giving smart suggestions like recommending songs or products is a common AI use.
  3. Final Answer:

    By giving smart suggestions based on your preferences -> Option D
  4. Quick Check:

    AI helps by suggesting = By giving smart suggestions based on your preferences [OK]
Hint: AI suggests based on your choices, not hardware fixes [OK]
Common Mistakes:
  • Confusing AI with hardware functions
  • Thinking AI controls device power
  • Assuming AI fixes physical problems
2. Which of these is the correct way to describe a voice assistant's function?
easy
A. It repairs your phone's hardware remotely
B. It automatically updates your operating system
C. It listens to your commands and answers questions
D. It cleans your device's screen using AI

Solution

  1. Step 1: Understand voice assistant capabilities

    Voice assistants respond to spoken commands and provide answers.
  2. Step 2: Match the correct description

    Listening and answering questions fits voice assistant functions.
  3. Final Answer:

    It listens to your commands and answers questions -> Option C
  4. Quick Check:

    Voice assistant = listens and answers [OK]
Hint: Voice assistants respond to voice commands, not hardware tasks [OK]
Common Mistakes:
  • Thinking voice assistants fix hardware
  • Confusing software updates with assistant tasks
  • Assuming AI cleans physical devices
3. Consider this example: A music app uses AI to recommend songs. If you listen mostly to jazz, what will the AI likely do?
medium
A. Recommend random songs from all genres
B. Recommend more jazz songs
C. Stop recommending songs
D. Recommend only classical music

Solution

  1. Step 1: Understand AI learning from user behavior

    The AI notices you prefer jazz by tracking your listening habits.
  2. Step 2: Predict AI's recommendation behavior

    It will suggest more jazz songs to match your taste.
  3. Final Answer:

    Recommend more jazz songs -> Option B
  4. Quick Check:

    AI learns preferences = Recommend jazz [OK]
Hint: AI recommends based on your past choices [OK]
Common Mistakes:
  • Assuming AI recommends random songs
  • Thinking AI stops recommendations
  • Believing AI ignores user preferences
4. A shopping website's AI assistant is not suggesting products based on your recent searches. What could be a likely reason?
medium
A. The AI assistant is not connected to your search data
B. You have too many items in your cart
C. The website is out of stock for all products
D. Your internet connection is too fast

Solution

  1. Step 1: Identify AI assistant's data dependency

    AI needs access to your search data to make recommendations.
  2. Step 2: Analyze why recommendations fail

    If not connected to search data, AI cannot suggest relevant products.
  3. Final Answer:

    The AI assistant is not connected to your search data -> Option A
  4. Quick Check:

    AI needs data connection = The AI assistant is not connected to your search data [OK]
Hint: AI needs your data to recommend correctly [OK]
Common Mistakes:
  • Blaming cart size for AI failure
  • Assuming stock affects AI suggestions
  • Thinking internet speed causes AI errors
5. You want to build a simple AI assistant that recommends books based on user ratings. Which two steps are essential for this AI to work well?
hard
A. Recommend books based on user ratings and previous choices
B. Ignore user ratings and suggest random books
C. Only suggest books published this year
D. Collect user ratings and suggest books with highest ratings

Solution

  1. Step 1: Understand data collection for AI recommendations

    The AI must gather user ratings and track previous choices to learn preferences.
  2. Step 2: Combine ratings and user history for better suggestions

    Using both ratings and past choices improves recommendation accuracy.
  3. Final Answer:

    Recommend books based on user ratings and previous choices -> Option A
  4. Quick Check:

    Combine ratings + history = Best AI recommendations [OK]
Hint: Use ratings plus past choices for smart recommendations [OK]
Common Mistakes:
  • Ignoring user preferences
  • Suggesting only new books without data
  • Choosing random suggestions without learning
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard