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

Module 10: Networking with Retrofit 2, OkHttp, Kotlinx Serialization & Ktor — ANDCP Mock Tests

Build resilient Android networking with Retrofit 2, OkHttp interceptors, JWT token refresh Authenticator, Kotlinx Serialization, multipart uploads, and MockWebServer tests.

⚡ START MODULE 10 PRACTICE

HTTP/2, REST Contracts & Kotlinx Serialization

Start your baseline timed assessment for this module

Module 10 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 10 Progress

Completion Status & Revision Focus

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

Android Native App Development • Module 10

Topic-Wise Timed Mock Tests (10 Topics)

Instant scorecard + detailed explanations
Topic 10.1 1 Set

HTTP/2, REST Contracts & Kotlinx Serialization

5 Qs • 20 min • Pass 70%

Topic 10.2 1 Set

Retrofit 2 Service Interfaces & Suspend Endpoints

5 Qs • 20 min • Pass 70%

Topic 10.3 1 Set

OkHttp Interceptors: Logging, Headers & Device Telemetry

5 Qs • 20 min • Pass 70%

Topic 10.4 1 Set

Automatic JWT Refresh with OkHttp Authenticator

5 Qs • 20 min • Pass 70%

Topic 10.5 1 Set

Timeouts, Exponential Backoff Retry & Idempotency Keys

5 Qs • 20 min • Pass 70%

Topic 10.6 1 Set

Multipart File Uploads & Progress Streaming

5 Qs • 20 min • Pass 70%

Topic 10.7 1 Set

HTTP Caching, ETags & Conditional Requests (304)

5 Qs • 20 min • Pass 70%

Topic 10.8 1 Set

GraphQL (Apollo Kotlin) & Ktor Client Comparison

5 Qs • 20 min • Pass 70%

Topic 10.9 1 Set

Network Connectivity Monitoring & Offline Banner UX

5 Qs • 20 min • Pass 70%

Topic 10.10 1 Set

Testing Networking with OkHttp MockWebServer

5 Qs • 20 min • Pass 70%

Sample Module 10 Practice Preview

Sample Networking with Retrofit 2, OkHttp, Kotlinx Serialization & Ktor MCQ Questions & Answers

Click “Reveal Answer & Explanation” to check yourself
Q1 • HTTP/2, REST Contracts & Kotlinx Serialization Module 10 Sample

In production Kotlin 2.0 & Jetpack Compose (Networking), what is the primary engineering purpose of 'HTTP/2, REST Contracts & Kotlinx Serialization'?

  • A. Parse complex JSON payloads faster with smaller APK size and Kotlin null-safety guarantees.
  • 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

'HTTP/2, REST Contracts & Kotlinx Serialization' is used in production Networking specifically for: Parse complex JSON payloads faster with smaller APK size and Kotlin null-safety guarantees.

Q2 • HTTP/2, REST Contracts & Kotlinx Serialization Module 10 Sample

Which critical production mobile defect MUST an engineer avoid when implementing 'HTTP/2, REST Contracts & Kotlinx Serialization'?

  • A. Isolating state mutations cleanly and verifying edge cases with JUnit 5, MockK, Turbine & Compose UI.
  • B. Using reflection-heavy Gson that silently assigns null to Kotlin non-null String fields!
  • 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 'HTTP/2, REST Contracts & Kotlinx Serialization' is: Using reflection-heavy Gson that silently assigns null to Kotlin non-null String fields!

Q3 • HTTP/2, REST Contracts & Kotlinx Serialization Module 10 Sample

Which technical scope accurately describes the core mechanics of 'HTTP/2, REST Contracts & Kotlinx Serialization'?

  • 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. @Serializable, @SerialName, ignoreUnknownKeys = true, coerceInputValues, and compile-time reflection-free JSON parsing
  • 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 'HTTP/2, REST Contracts & Kotlinx Serialization' comprises: @Serializable, @SerialName, ignoreUnknownKeys = true, coerceInputValues, and compile-time reflection-free JSON parsing.

Q4 • HTTP/2, REST Contracts & Kotlinx Serialization Module 10 Sample

What is the expected hands-on deliverable for completing the mobile lab on 'HTTP/2, REST Contracts & Kotlinx Serialization'?

  • 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. Define @Serializable DTOs with custom Instant serializer and verify unknown-key resilience.
✓ Reveal Answer & Explanation

Correct Answer: Option D

Practical mastery of 'HTTP/2, REST Contracts & Kotlinx Serialization' is verified through: Define @Serializable DTOs with custom Instant serializer and verify unknown-key resilience.

Q5 • HTTP/2, REST Contracts & Kotlinx Serialization Module 10 Sample

In a Mobile SDE technical interview on 'HTTP/2, REST Contracts & Kotlinx Serialization', what demonstrates senior Kotlin 2.0 & Jetpack Compose readiness?

  • A. Explaining '@Serializable, @SerialName, ignoreUnknownKeys = true, coerceInputValues, and compile-time reflection-free JSON parsing' internals, preventing 'Using reflection-heavy Gson that silently assigns null to Kotlin non-null `...
  • 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 (@Serializable, @SerialName, ignoreUnknownKeys = true, coerceInputValues, and compile-time reflection-free JSON parsing), crash/jank prevention, and clean mobile architecture.

Need structured guidance on Networking with Retrofit 2, OkHttp, Kotlinx Serialization & Ktor? 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 10: Networking with Retrofit 2, OkHttp, Kotlinx Serialization & Ktor (ANDCP) Mock Tests

1. How many MCQ Mock Tests are included in Module 10: Networking with Retrofit 2, OkHttp, Kotlinx Serialization & Ktor (ANDCP)?

Module 10 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 Networking with Retrofit 2, OkHttp, Kotlinx Serialization & Ktor 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.