0
0
Figmabi_tool~20 mins

Real-time multiplayer editing in Figma - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Real-time Editing Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Real-time Multiplayer Editing Basics

In a real-time multiplayer editing environment like Figma, what is the primary method used to ensure all users see the latest changes instantly?

AUsing WebSocket connections to push updates instantly
BPolling the server every few seconds to fetch updates
CSaving changes locally and syncing only on file close
DSending email notifications for every change made
Attempts:
2 left
💡 Hint

Think about how instant communication happens in chat apps.

data_modeling
intermediate
2:00remaining
Data Model for Conflict Resolution

Which data model approach best supports conflict resolution in real-time multiplayer editing?

AManual merge by users after editing
BIgnoring conflicts and overwriting blindly
CLast write wins (LWW) with timestamps
DSaving only the first user's changes
Attempts:
2 left
💡 Hint

Consider how automatic conflict resolution can be done without user intervention.

dax_lod_result
advanced
2:30remaining
DAX Measure for Active Editors Count

Given a table Editors with columns UserID, LastActiveTime, and DocumentID, which DAX measure correctly counts the number of unique active editors on a document in the last 5 minutes?

AActiveEditors = CALCULATE(DISTINCTCOUNT(Editors[UserID]), FILTER(Editors, Editors[LastActiveTime] >= NOW() - TIME(0,5,0)))
BActiveEditors = DISTINCTCOUNT(FILTER(Editors, Editors[LastActiveTime] >= NOW() - TIME(0,5,0))[UserID])
CActiveEditors = COUNTROWS(FILTER(Editors, Editors[LastActiveTime] >= NOW() - TIME(0,5,0)))
DActiveEditors = CALCULATE(COUNT(Editors[UserID]), FILTER(Editors, Editors[LastActiveTime] <= NOW() + TIME(0,5,0)))
Attempts:
2 left
💡 Hint

Use CALCULATE with DISTINCTCOUNT and a FILTER on recent activity.

visualization
advanced
2:00remaining
Best Visualization for Real-time User Activity

Which visualization best shows the number of active users editing a document over the last hour, updating every minute?

AA stacked bar chart showing total edits per user
BA pie chart showing percentage of users per document
CA scatter plot showing user locations
DA line chart showing active user count on the Y-axis and time on the X-axis
Attempts:
2 left
💡 Hint

Think about how to show changes over time clearly.

🔧 Formula Fix
expert
3:00remaining
Debugging Real-time Sync Issue

In a real-time editing system, users report that sometimes their changes do not appear for others immediately. The code snippet below handles update broadcasting:

function broadcastUpdate(update) {
  clients.forEach(client => {
    client.send(JSON.stringify(update));
  });
}

What is the most likely cause of the delay?

AThe <code>forEach</code> loop sends updates in parallel causing race conditions
BThe <code>clients</code> list is not updated when users disconnect, causing some sends to fail silently
CThe <code>send</code> method buffers messages and sends only every 10 seconds
DThe <code>JSON.stringify</code> call is asynchronous and delays sending
Attempts:
2 left
💡 Hint

Consider what happens if a client is no longer connected but still in the list.