Weekly Engineering Mastery Quiz (2026-03-23 to 2026-03-27)
A 20-question assessment covering fundamentals, implementation best practices, and advanced architecture insights from this week’s learning posts.
Table of contents
Weekly engineering recap (Europe/London) Coverage: 2026-03-23 → 2026-03-27 • Run date: 2026-03-29
Focus: Kotlin — Variables & Types (Fundamental refresher)
Key takeaways
- val vs var: val is a read‑only reference (single assignment); var is reassignable. Object mutability is independent of reference mutability.
- Type inference: The compiler infers types from initializers. For integer literals, inference starts at Int and widens to Long when needed; floating literals default to Double.
- Basic types: Numbers (Byte/Short/Int/Long, U* variants, Float/Double), Boolean, Char, and String behave like classes with operators and utilities; there are no implicit numeric widenings.
- String templates: Use $name and ${expr}. Triple‑quoted strings (""") support raw text; use ${’$’} for a literal dollar. New multi‑dollar interpolation (experimental) lets you require multiple $ to trigger interpolation.
- Any, Unit, Nothing: Any is the root of all non‑null types; Unit is a single‑value return type for “no meaningful value”; Nothing is the bottom type (expressions that never return, e.g., throw or error).
- Practical tips: Prefer val by default; add explicit types when inference is unclear (e.g., empty collections); avoid referential equality (===) for boxed numbers on the JVM; use == for value equality.
- 2026 notes: IDEs use the K2 compiler frontend by default in Kotlin 2.x; expect clearer diagnostics and some stricter checks. Review plugin compatibility and migration notes. Multi‑dollar string interpolation is available as an experimental feature.
Interactive Quiz
Use the interactive quiz section below to answer each question and get instant feedback.
Interactive Quiz
Select one option.
Select one option.
Select one option.
Select one option.
Select one or more options.
Select one option.
Select one option.
Select one option.
Select one option.
Select one or more options.
Select one option.
Select one or more options.
Select one option.
Select one option.
Select one option.
Select one or more options.
Select one option.
Select one option.
Select one or more options.
Select one option.
References
- kotlinlang.org/docs/basic-syntax.html
- kotlinlang.org/docs/strings.html
- kotlinlang.org/docs/numbers.html
- kotlinlang.org/docs/booleans.html
- kotlinlang.org/docs/characters.html
- kotlinlang.org/docs/types-overview.html
- kotlinlang.org/docs/k2-compiler-migration-guide.html
- kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any
- kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit
- kotlinlang.org/api/latest/jvm/stdlib/kotlin/-nothing.html
Share
More to explore
Keep exploring
3/22/2026
Weekly Engineering Mastery Quiz (2026-03-16 to 2026-03-20)
A 20-question assessment covering fundamentals, implementation best practices, and advanced architecture insights from this week’s learning posts.
3/14/2026
Weekly Engineering Mastery Quiz (2026-03-09 to 2026-03-13)
A 20-question assessment covering fundamentals, implementation best practices, and advanced architecture insights from this week’s learning posts.
3/8/2026
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.
Previous
Flutter Layout from the Inside Out: Constraints, Stacks, and the Widgets That Keep You Sane
Next