2 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. Week Summary (Mar 2–6, 2026, Europe/London)
  2. Interactive Quiz

Week Summary (Mar 2–6, 2026, Europe/London)

This week consolidated Kotlin fundamentals and Jetpack Compose core concepts.

Highlights

  • Jetpack Compose Core Concepts (Mar 4 & Mar 6): declarative UI, composition tree, recomposition, idempotency, composable lifecycle, positional memoization, pure composables; Slot APIs (single vs named slots), insets-aware design, Scaffold usage, and subcomposition for advanced layouts.
  • Kotlin Language: Variables & Types (Mar 4, Parts 1–2) + Refresher (Mar 5): val vs var, type inference, strings and templates, numeric/boolean/char types; lattice cornerstones Any, Unit, Nothing and their correct use.

What you should now be able to do

  • Structure UIs declaratively in Compose, reason about composition/recomposition, and keep composables idempotent and side‑effect free.
  • Apply positional memoization safely and use Effect APIs when side effects are required.
  • Design reusable Slot APIs, choose between single content vs named slots, and employ subcomposition judiciously.
  • Write clear Kotlin using val/var appropriately, leverage type inference, and correctly apply Any/Unit/Nothing.

Practical emphasis

  • Insets: prefer WindowInsets and Scaffold’s contentWindowInsets over hardcoded padding.
  • Performance: hoist state, keep slot lambdas stable, and remember expensive objects.
  • Robust Kotlin: use Nothing for non‑returning code paths (e.g., error), Unit for functions with no meaningful value, and Any/Any? at API boundaries.

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 inferred type of the literal 42 in Kotlin (without suffixes)?

Fundamentals

Select one option.

Q3 Given val name = "Ada", which template prints "Hello, Ada"?

Fundamentals

Select one option.

Q4 What does the @Composable annotation signify in Jetpack Compose?

Fundamentals

Select one option.

Q5 Which statements align with declarative UI in Compose?

Fundamentals

Select one or more options.

Q6 Which best describes the composition tree in Compose?

Intermediate

Select one option.

Q7 What can trigger recomposition of a composable?

Intermediate

Select one or more options.

Q8 Idempotency in composables means:

Intermediate

Select one option.

Q9 When a composable is disposed, what happens?

Intermediate

Select one option.

Q10 Select all true statements about Any, Unit, and Nothing in Kotlin:

Intermediate

Select one or more options.

Q11 Which statement about remember(...) is accurate?

Intermediate

Select one option.

Q12 Which best characterizes a "pure" composable?

Intermediate

Select one option.

Q13 In Compose, a Slot API primarily refers to:

Advanced

Select one option.

Q14 When are multiple named slots preferable to a single content slot?

Advanced

Select one option.

Q15 About subcomposition in Compose, which statements are true?

Advanced

Select one or more options.

Q16 Insets handling with Scaffold and slots—what’s a recommended approach?

Advanced

Select one option.

Q17 Which Material 3 Scaffold slot is intended for the top app bar?

Advanced

Select one option.

Q18 For performance with Slot APIs, which practice is recommended?

Advanced

Select one option.

Q19 Common, correct uses of Kotlin’s Nothing include:

Advanced

Select one or more options.

Q20 Which Effect API launches a coroutine tied to the composition and cancels it on key change or disposal?

Advanced

Select one option.

References

Share

More to explore

Keep exploring

Previous

Flutter: Core Widget Concepts Deep Dive (Part 2/2)

Next

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