Bird
0
0

During a game test, the view refreshes before the model updates the game state. What problem does this cause?

medium📝 Analysis Q6 of 15
LLD - Design — Tic-Tac-Toe Game
During a game test, the view refreshes before the model updates the game state. What problem does this cause?
AThe model state becomes corrupted due to premature rendering
BThe view displays outdated information leading to inconsistent UI
CThe game crashes because the view modifies the model
DThe view skips rendering frames causing lag
Step-by-Step Solution
Solution:
  1. Step 1: Understand update order

    The model must update first to provide current data.
  2. Step 2: Consequence of early view refresh

    If the view refreshes before model updates, it shows stale data.
  3. Final Answer:

    The view displays outdated information leading to inconsistent UI -> Option B
  4. Quick Check:

    Model updates before view refresh to avoid stale display [OK]
Quick Trick: Model updates first, then view refreshes [OK]
Common Mistakes:
MISTAKES
  • Assuming model state corrupts from view refresh
  • Believing view modifies model causing crash
  • Thinking view skipping frames causes this issue

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes