Question library

Find the right iOS interview question in seconds

Search by title or keywords, narrow by topic, difficulty, or tag, then open a question for a full write-up with code and a short exercise to practice your answer.

Tags

Select any combination. A question must include every tag you pick (AND).

Any tag
Difficulty: Beginner

What is the difference between let and var in Swift?

Explain that `let` creates an immutable binding while `var` creates a mutable one, then separate how that rule behaves for value types versus reference types

What is the difference between print and debugPrint in Swift?

Explain that `print` prefers a user-facing string while `debugPrint` prefers a debug representation, then show when their output is identical and when it diverges