All quizzes
Free quiz · 24 questions in the bank

Swift quiz

Test your Swift knowledge with a free interactive quiz — 24 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What is a protocol in Swift?

Questions in this quiz
  1. What is a protocol in Swift?
  2. What is type inference in Swift?
  3. What is the guard statement used for?
  4. What is a closure in Swift?
  5. How does Swift do string interpolation?
  6. What framework is used for building modern declarative UIs in Swift?
  7. What does `if let x = optional { }` do?
  8. What does the `func` keyword define?
  9. What is the difference between `let` and `var` in Swift?
  10. What is an optional in Swift?
  11. Is Swift statically or dynamically typed?
  12. What collection type is an ordered list in Swift?
Gaps to close?
Read the curated Swift notes — core concepts, patterns, interview prep.
Swift notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web