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. Weekly Progress (Europe/London)
  2. Interactive Quiz

Weekly Progress (Europe/London)

Coverage: 2–6 Mar 2026 • Run date: 7 Mar 2026

This week consolidated Kotlin fundamentals and advanced Jetpack Compose mental models.

Highlights

  • Kotlin — Variables & Types (Parts 1–2 + Refresher):
    • val vs var, stronger K2 type inference, strings/templates, primitives (Int/Long/Float/Double), Boolean, Char.
    • Top/bottom types: Any/Any?, Unit, Nothing. Conversions are explicit; templates use $name and ${expr}.
  • Jetpack Compose — Core Concepts (Parts 1–2):
    • Declarative UI, composition tree, recomposition, idempotency, composable lifecycle, positional memoization, pure composables and side-effect APIs.
    • Slot API design: content lambdas, named vs single slots, interaction with Scaffold/insets, and when to reach for subcomposition for dependent layouts.

Key takeaways

  • Keep composables pure and idempotent; route effects via LaunchedEffect/SideEffect/DisposableEffect.
  • Remember is positional; use stable keys and immutable params to minimize unnecessary recomposition.
  • Prefer named slots for multi-area components; apply Scaffold innerPadding and window insets correctly.
  • In Kotlin, Unit has a single value, Any is the non-null top type, and Nothing denotes non-returning code paths.

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, which statement about val and var is correct?

Fundamentals

Select one option.

Q2 What is the default type of the literal 3.14 in Kotlin?

Fundamentals

Select one option.

Q3 Which best captures the declarative UI model in Jetpack Compose?

Fundamentals

Select one option.

Q4 Select all that describe pure, idempotent composables during composition.

Fundamentals

Select one or more options.

Q5 Which statement about Kotlin string templates is correct?

Fundamentals

Select one option.

Q6 Which declaration can hold null without a compiler error?

Intermediate

Select one option.

Q7 Which is true about Kotlin’s Unit?

Intermediate

Select one option.

Q8 Which events typically trigger recomposition of a composable?

Intermediate

Select one or more options.

Q9 What risk does positional memoization with remember introduce?

Intermediate

Select one option.

Q10 Choose the correct statement about Char and String in Kotlin.

Intermediate

Select one option.

Q11 Which statement about numeric conversions in Kotlin is correct?

Intermediate

Select one option.

Q12 Slot API guidance in Compose—select all correct statements.

Intermediate

Select one or more options.

Q13 When a composable leaves the composition, what happens to state produced by remember?

Advanced

Select one option.

Q14 How does LaunchedEffect(key) behave when its key changes?

Advanced

Select one option.

Q15 Which statement about Kotlin’s Nothing type is correct?

Advanced

Select one option.

Q16 When is subcomposition (e.g., SubcomposeLayout) appropriate? Select all that apply.

Advanced

Select one or more options.

Q17 Which practice best minimizes unnecessary recompositions?

Advanced

Select one option.

Q18 How should content handle insets when using Material3 Scaffold?

Advanced

Select one option.

Q19 Type relationships—select all correct statements.

Advanced

Select one or more options.

Q20 When should rememberUpdatedState be used?

Advanced

Select one option.

References

Share

More to explore

Keep exploring

Previous

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

Next

Jetpack Compose: Core Concepts Refresher