Bird
0
0

What is the main reason to use polling as a fallback in Flask applications?

easy📝 Conceptual Q11 of 15
Flask - WebSocket and Real-Time
What is the main reason to use polling as a fallback in Flask applications?
ATo regularly ask the server for updates when real-time methods fail
BTo reduce the number of server requests to zero
CTo make the server push updates automatically without client requests
DTo avoid any communication between client and server
Step-by-Step Solution
Solution:
  1. Step 1: Understand polling purpose

    Polling sends repeated requests to the server to check for updates.
  2. Step 2: Identify fallback use

    Polling is used when real-time communication methods like WebSockets are unavailable or fail.
  3. Final Answer:

    To regularly ask the server for updates when real-time methods fail -> Option A
  4. Quick Check:

    Polling = fallback for updates [OK]
Quick Trick: Polling means repeated requests when real-time fails [OK]
Common Mistakes:
MISTAKES
  • Thinking polling reduces server requests
  • Confusing polling with server push
  • Believing polling stops communication

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Flask Quizzes