0
0
Intro to Computingfundamentals~20 mins

Database in everyday apps (social media, banking) in Intro to Computing - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Database Mastery in Everyday Apps
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
How does a social media app use a database to show your friend list?

Imagine you open a social media app and see your list of friends. How does the app use a database to get this list?

AThe app asks the database to find all friends linked to your user ID and sends back their names.
BThe app stores all friends on your phone and never asks the database.
CThe app sends your password to the database to get the friend list.
DThe app randomly picks names from the database without checking your user ID.
Attempts:
2 left
💡 Hint

Think about how the app knows which friends belong to you.

trace
intermediate
2:00remaining
Trace the steps when you transfer money in a banking app

Follow the steps below and choose what happens right after the app checks your balance:

1. You enter amount to send.
2. App checks your balance.
3. ???
AThe app sends a message to your friend without checking balances.
BThe app asks you to enter your password again before checking balance.
CThe app updates your balance and the receiver's balance in the database.
DThe app deletes your account from the database.
Attempts:
2 left
💡 Hint

Think about what must happen after confirming you have enough money.

Comparison
advanced
2:00remaining
Compare how social media and banking apps use databases differently

Which statement best describes a key difference in how social media and banking apps use databases?

ASocial media databases focus on fast access to many user connections, while banking databases focus on secure, accurate transaction records.
BBanking databases store only pictures, while social media databases store only numbers.
CSocial media apps do not use databases, but banking apps do.
DBoth apps use databases only to store passwords.
Attempts:
2 left
💡 Hint

Think about what each app needs most from its database.

identification
advanced
2:00remaining
Identify the database operation when you 'like' a post on social media

What database operation happens when you click 'like' on a post?

AThe database sends an email to all users.
BThe database deletes the post permanently.
CThe database creates a new user account.
DThe database updates the post's like count by adding your user ID to the list of likes.
Attempts:
2 left
💡 Hint

Think about what changes in the database when you like something.

🚀 Application
expert
3:00remaining
What happens if a banking app database loses connection during a money transfer?

During a money transfer, the app loses connection to the database after deducting money from your account but before adding it to the receiver's account. What is the likely result?

AThe transfer completes successfully without any issues.
BYour money is deducted but the receiver does not get it, causing an inconsistent state.
CThe app automatically refunds the money without database access.
DThe receiver gets double the money.
Attempts:
2 left
💡 Hint

Think about what happens if only part of a transaction is saved.