Every stack
Most asked
By interview frequency
- What is the difference between
finalandconstin Dart? - What is sound null safety in Dart, and how do nullable and non-nullable types differ?
- What is a mixin, when do you use one instead of inheritance, and what does the
onclause do? - What are extension methods, what do they give you over helper functions, and when do they not apply?
- What is Flutter, how does it differ from React Native and other cross-platform frameworks, and what are its limitations?
- What is the difference between StatelessWidget and StatefulWidget, and why not make every widget stateful?
- What is
BuildContext, what does it represent in the tree, and why do you need it? - In what order do a State object's lifecycle methods run, from creation to disposal?
- What is the difference between hot reload, hot restart, and full restart?
- What is
pubspec.yamlfor, and what does^mean in a dependency version? - What are Flutter's debug, profile and release modes, and how do JIT and AOT compilation fit into them?
- How does your app find out that it went to the background, and what should you do there?
- What is the difference between
Container,SizedBox,PaddingandColoredBox? - In
RowandColumn, what domainAxisAlignment,crossAxisAlignmentandmainAxisSizecontrol? - What is the
Navigator, what is a route, and how dopushandpopwork? - Which state-management approaches do you know in Flutter, and how do you choose one for a project?
- How does
setState()work, what happens when you call it, and why must you not call it insidebuild()? - What problem does
InheritedWidgetsolve, and how doesupdateShouldNotifywork? - What is a
Future, how doasyncandawaitwork, and how do you handle errors from a Future? - How does Dart's event loop work, and what is the difference between the microtask queue and the event queue?
- What is the difference between
letandvarin Swift? - What is an optional in Swift, how is it implemented, and how do you unwrap it safely?
- What is the difference between value types and reference types in Swift?
- What is a closure in Swift, and is it a value type or a reference type?
- What is the difference between
weakandunowned, and when do you need[weak self]in a closure? - How does error handling work in Swift:
throws,try,try?,try!,do/catchandResult? - What is the difference between a struct and a class in Swift?
- What is the difference between raw values and associated values in a Swift enum?
- What is SwiftUI, and what are its advantages and drawbacks compared with UIKit?
- How does
NavigationStackwork, and how do you navigate programmatically or from a deep link? - Walk through the
UIViewControllerlifecycle: which callbacks run once, which run on every appearance, and where do you start loading data? - What is the difference between
frameandbounds, and when isbounds.originnot zero? - What is the responder chain, and how does
hitTest(_:with:)decide which view receives a touch? - What is the difference between
val,varandconst valin Kotlin? - What is a
data class, what does the compiler generate for it, and what are its limits? - What are sealed classes and sealed interfaces, and how do they make
whenexhaustive? - What are the four OOP principles, and what is the difference between overloading and overriding?
- What is the difference between the scope functions
let,run,with,applyandalso? - What is the difference between
class,objectandcompanion object, and is anobjectsingleton thread-safe? - What is Jetpack Compose, and how is it different from the View system?
- What is recomposition, when does it happen, and how does Compose decide what to re-run?
- What are the four main Android app components, and why is
Applicationnot one of them? - Walk through the Activity lifecycle: why does
setContentView()go inonCreate(), and when isonDestroy()called withoutonPause()/onStop()? - What happens to an Activity on screen rotation, and where do you keep state so it survives:
ViewModel,onSaveInstanceStateorrememberSaveable? - What is an
Intent: explicit vs implicit, how does the system resolve an implicit one, and how do you get a result back? - What is a Fragment, how is its lifecycle tied to the host Activity, and why does it have a separate
viewLifecycleOwner? - Why do you pass objects between screens as
Parcelablerather thanSerializable, and why can a bigBundlethrowTransactionTooLargeException? - What is Go, why was it created, and what are its main strengths and weaknesses?
- What is a package in Go, how do you import one, and what makes a name exported?
- How are arguments passed to functions in Go, and when should you pass a pointer instead of a value?