1 min read

Weekly Engineering Mastery Quiz (2026-03-02 to 2026-03-06)

A 20-question assessment covering fundamentals, implementation best practices, and advanced architecture insights from this week’s learning posts.

#Learning-log#Quiz#Assessment Weekly Quiz

Table of contents

  1. Interactive Quiz

Weekly focus (2026-03-02 → 2026-03-06, Europe/London)

Highlights

  • Jetpack Compose Core Concepts (Part 1/2, 2026-03-04): @Composable, declarative UI, composition tree, recomposition, idempotency, composable lifecycle, positional memoization, and pure composables.
  • Kotlin Language: Variables & Types (Parts 1/2 on 2026-03-04; Refresher on 2026-03-05): val/var, type inference, core primitives (Int/Long/Double/Float, Boolean, Char), Strings & templates, and top/bottom types (Any, Unit, Nothing).

Key takeaways

  • Compose is declarative: model UI as a pure function of observable state. Recomposition is targeted and driven by state reads; side-effects belong in effect APIs (e.g., LaunchedEffect/DisposableEffect).
  • Idempotent composables and positional memoization: keep bodies fast/pure; prefer remember with stable keys; reordering remember calls changes identity.
  • Kotlin fundamentals: prefer val; inference is compile-time and based on initializers; default numeric literal types are Int/Double; use explicit conversions; Strings are immutable; understand Any vs Any?, and the roles of Unit and Nothing.

Run date: 2026-03-05.

Interactive Quiz

Use the interactive quiz section below to answer each question and get instant feedback.

Interactive Quiz

Score: 0 / 20 | Answered: 0 / 20

Q1 In Kotlin, what does val mean for a local variable?

Fundamentals

Select one option.

Q2 How does Kotlin’s type inference work for local variables?

Fundamentals

Select one option.

Q3 Which String template usage is correct?

Fundamentals

Select one option.

Q4 What is the default type of the integer literal 42 in Kotlin (no suffix/context)?

Fundamentals

Select one option.

Q5 Select all true statements about @Composable functions.

Fundamentals

Select one or more options.

Q6 What best describes Compose’s declarative UI model?

Intermediate

Select one option.

Q7 When does recomposition of a composable typically occur?

Intermediate

Select one option.

Q8 What does idempotency mean for composable functions?

Intermediate

Select one option.

Q9 Which API provides setup with guaranteed cleanup when leaving composition or when keys change?

Intermediate

Select one option.

Q10 Which statements about positional memoization (remember) are true?

Intermediate

Select one or more options.

Q11 What’s the relationship between Any and Any? in Kotlin?

Intermediate

Select one option.

Q12 Select all correct statements about Unit and Nothing in Kotlin.

Intermediate

Select one or more options.

Q13 Which is a property of pure composables?

Advanced

Select one option.

Q14 How does rememberSaveable differ from remember?

Advanced

Select one option.

Q15 Best practices for keys in LaunchedEffect/DisposableEffect include which?

Advanced

Select one or more options.

Q16 Which statement about Kotlin Strings/chars is valid?

Advanced

Select one option.

Q17 What is the default type of a floating-point literal like 1.0 in Kotlin?

Advanced

Select one option.

Q18 Which is true about Any and nullability?

Advanced

Select one option.

Q19 Select all correct statements about Kotlin numeric inference and conversions.

Advanced

Select one or more options.

Q20 What is the Composition tree in Jetpack Compose?

Advanced

Select one option.

References

Share

More to explore

Keep exploring

Previous

Kotlin Language: Variables & Types Refresher

Next

Jetpack Compose: Core Concepts Deep Dive (Part 1/2)