Swift (Coding) Quiz

Swift fundamentals: optionals, protocols, and modern Apple-platform development idioms.

This category currently has 60 questions in the SERVBG quiz bank. Below are a few sample questions: the full interactive quiz shuffles through the whole set with instant scoring.

Sample questions

In Swift, what is an Optional?
Which operator provides a default value when an Optional is nil?
What does `if let x = optional { ... }` do?
What does `guard let x = optional else { return }` do?
In Swift, struct vs class: which is a value type?
Start the full quiz ›

Related categories

Python (Coding)
Python syntax and standard-library usage, from quick scripts to full applications.
187 questions
JavaScript (Coding)
Core JavaScript behavior and async patterns, including the quirks that trip up beginners and veterans alike.
186 questions
Linux
Linux command-line usage, file permissions, process management. The daily admin tasks.
150 questions
Security
General information security concepts: common threats and standard defenses.
148 questions
Hardware
Hardware components, how they interact, and basic troubleshooting to keep systems running.
145 questions