Skip to main content
ANDCP • MODULE 14 OF 24 10 Timed Sets • 50 Verified MCQs

Module 14: Real-Time WebSockets, Google Maps & Location Tracking — ANDCP Mock Tests

Build live consumer delivery & chat apps using OkHttp WebSockets, Google Maps Compose, Fused Location Provider, and battery-safe geofencing.

⚡ START MODULE 14 PRACTICE

OkHttp WebSockets & Reconnecting Flow Client

Start your baseline timed assessment for this module

Module 14 Assessment Rules & Format Every Attempt Helps You Improve • Track Your Progress, One Topic at a Time.
Question Bank 50 MCQs
Timed Sets 10 (10 Topics)
Duration 20 min / set
Pass Benchmark 70%
Negative Marking Up to -0.25 / wrong
Daily Access ∞ Unlimited Free

Integrity & Navigation: Questions can be revisited, changed, or flagged for review before final submission; answers auto-save across browser refreshes, and answer keys stay locked server-side until submitted.

Your Module 14 Progress

Completion Status & Revision Focus

Practice Today. Perform Better Tomorrow. No completed attempts recorded in Module 14 yet — start any topic below to generate your topic scorecard and unlock personalized revision suggestions.

Android Native App Development • Module 14

Topic-Wise Timed Mock Tests (10 Topics)

Instant scorecard + detailed explanations
Topic 14.1 1 Set

OkHttp WebSockets & Reconnecting Flow Client

5 Qs • 20 min • Pass 70%

Topic 14.2 1 Set

Chat Messaging Architecture: Ordering, Read Receipts & Offline Queue

5 Qs • 20 min • Pass 70%

Topic 14.3 1 Set

Fused Location Provider & Coarse vs Fine Permissions

5 Qs • 20 min • Pass 70%

Topic 14.4 1 Set

Google Maps Compose SDK & Custom Markers

5 Qs • 20 min • Pass 70%

Topic 14.5 1 Set

Geocoding, Reverse Geocoding & Address Autocomplete

5 Qs • 20 min • Pass 70%

Topic 14.6 1 Set

Geofencing & Foreground Location Tracking Service

5 Qs • 20 min • Pass 70%

Topic 14.7 1 Set

Server-Sent Events (SSE) for Live Order Timelines

5 Qs • 20 min • Pass 70%

Topic 14.8 1 Set

Smooth Marker Animation & Haversine Distance Math

5 Qs • 20 min • Pass 70%

Topic 14.9 1 Set

Battery & Radio Profiling for Real-Time Apps

5 Qs • 20 min • Pass 70%

Topic 14.10 1 Set

Testing Location & WebSocket Flows Deterministically

5 Qs • 20 min • Pass 70%

Sample Module 14 Practice Preview

Sample Real-Time WebSockets, Google Maps & Location Tracking MCQ Questions & Answers

Click “Reveal Answer & Explanation” to check yourself
Q1 • OkHttp WebSockets & Reconnecting Flow Client Module 14 Sample

In production Kotlin 2.0 & Jetpack Compose (Real-Time), what is the primary engineering purpose of 'OkHttp WebSockets & Reconnecting Flow Client'?

  • A. Power live support chat and sub-second rider ETA updates over a single persistent socket.
  • B. Executing heavy disk I/O and synchronous network requests directly on the main UI rendering thread.
  • C. Hardcoding production API secrets and plaintext auth tokens inside bundled client resources.
  • D. Disabling lifecycle cancellation and holding strong references to destroyed screen contexts.
✓ Reveal Answer & Explanation

Correct Answer: Option A

'OkHttp WebSockets & Reconnecting Flow Client' is used in production Real-Time specifically for: Power live support chat and sub-second rider ETA updates over a single persistent socket.

Q2 • OkHttp WebSockets & Reconnecting Flow Client Module 14 Sample

Which critical production mobile defect MUST an engineer avoid when implementing 'OkHttp WebSockets & Reconnecting Flow Client'?

  • A. Isolating state mutations cleanly and verifying edge cases with JUnit 5, MockK, Turbine & Compose UI.
  • B. Opening a raw WebSocket without heartbeat pings or reconnect backoff dropping silently on Wi-Fi -> 4G switch!
  • C. Ensuring responsive 60/120fps scrolling, accessible touch targets, and graceful offline fallbacks.
  • D. Encrypting sensitive user tokens inside hardware-backed platform secure storage.
✓ Reveal Answer & Explanation

Correct Answer: Option B

A high-impact real-world mobile failure mode with 'OkHttp WebSockets & Reconnecting Flow Client' is: Opening a raw WebSocket without heartbeat pings or reconnect backoff dropping silently on Wi-Fi -> 4G switch!

Q3 • OkHttp WebSockets & Reconnecting Flow Client Module 14 Sample

Which technical scope accurately describes the core mechanics of 'OkHttp WebSockets & Reconnecting Flow Client'?

  • A. Ignoring process death, screen rotation, and low-memory lifecycle callbacks completely.
  • B. Skipping automated tests, static analysis, and crash telemetry before store submission.
  • C. WebSocketListener, callbackFlow, heartbeat ping/pong frames, and exponential-backoff auto-reconnect
  • D. Polling REST endpoints every 100ms in the background regardless of battery or Doze/Low Power Mode.
✓ Reveal Answer & Explanation

Correct Answer: Option C

Core technical coverage of 'OkHttp WebSockets & Reconnecting Flow Client' comprises: WebSocketListener, callbackFlow, heartbeat ping/pong frames, and exponential-backoff auto-reconnect.

Q4 • OkHttp WebSockets & Reconnecting Flow Client Module 14 Sample

What is the expected hands-on deliverable for completing the mobile lab on 'OkHttp WebSockets & Reconnecting Flow Client'?

  • A. Committing signing keystores, provisioning profiles, and API keys to a public Git branch.
  • B. Bypassing strict null/type safety with unchecked force-unwraps across network parsers.
  • C. Testing only on a single high-end simulator while ignoring slow networks and offline states.
  • D. Build a RealtimeSocketClient emitting typed sealed events (Connected, Message, Disconnected).
✓ Reveal Answer & Explanation

Correct Answer: Option D

Practical mastery of 'OkHttp WebSockets & Reconnecting Flow Client' is verified through: Build a RealtimeSocketClient emitting typed sealed events (Connected, Message, Disconnected).

Q5 • OkHttp WebSockets & Reconnecting Flow Client Module 14 Sample

In a Mobile SDE technical interview on 'OkHttp WebSockets & Reconnecting Flow Client', what demonstrates senior Kotlin 2.0 & Jetpack Compose readiness?

  • A. Explaining 'WebSocketListener, callbackFlow, heartbeat ping/pong frames, and exponential-backoff auto-reconnect' internals, preventing 'Opening a raw WebSocket without heartbeat pings or reconnect backoff dropping silently on Wi-Fi -> 4...
  • B. Duplicating all business logic inside UI view files without testable ViewModel/Repository layers.
  • C. Disabling HTTPS certificate validation and storing PII in unencrypted user preferences.
  • D. Shipping unprofiled debug builds with bloated dependencies and zero crash reporting.
✓ Reveal Answer & Explanation

Correct Answer: Option A

Interviewers evaluate platform internals (WebSocketListener, callbackFlow, heartbeat ping/pong frames, and exponential-backoff auto-reconnect), crash/jank prevention, and clean mobile architecture.

Need structured guidance on Real-Time WebSockets, Google Maps & Location Tracking? Review the full ANDCP syllabus or practise speaking through ANDCP concepts in an AI technical interview.

Mobile App Development (Android, React Native & iOS)

Continue Learning & Explore Related Resources

FAQs — Module 14: Real-Time WebSockets, Google Maps & Location Tracking (ANDCP) Mock Tests

1. How many MCQ Mock Tests are included in Module 14: Real-Time WebSockets, Google Maps & Location Tracking (ANDCP)?

Module 14 of Android Native App Development Training Course (Kotlin & Jetpack Compose) includes 10 active timed MCQ mock test sets (50 verified questions across 10 topics), with server-side scoring, instant scorecards, and detailed explanations after submission.

2. What are the attempt rules and answer-key policies for Real-Time WebSockets, Google Maps & Location Tracking mock tests?

You can preview sample questions on this page and launch up to 2 free timed attempts per topic per day without signup (enrolled cohort learners receive unlimited attempts). During a live test, answers auto-save across refreshes and answer keys remain protected on the server until submission.

3. Does scoring high on this ANDCP module test guarantee interview selection?

No — module mock scores measure topic-level conceptual accuracy and highlight specific concepts to revise. Pair topic mocks with ANDCP Spoken AI Interviews and hands-on coding practice to build well-rounded interview readiness; hiring decisions rest independently with employers.

Learn. Practise. Prove. Get Career-Ready.

Ready to Build Your IT Career?

Explore industry-led programmes and develop practical skills through training, assessments and interview preparation.