Swift
Optional unwrapping
Which of these unwrap an optional safely? Pick all that apply.
Pick all that apply
Optional unwrapping
Which of these unwrap an optional safely? Pick all that apply.
Pick all that apply
SwiftMultiple choiceIntro
Given let view: UIView = UILabel(), which of these casts can crash at runtime?
#optional
SwiftShort answerIntro
Why does Swift have optionals?
#optional
SwiftMultiple choiceIntro
Which of these three lines compile? Pick all that apply. …
#optional
SwiftShort answerBasics
Extend Array with a myCompactMap that behaves like the standard library's compactMap. How…
#optional