Swift
Type casting
Given let view: UIView = UILabel(), which of these casts can crash at runtime?
Pick one
Type casting
Given let view: UIView = UILabel(), which of these casts can crash at runtime?
Pick one
SwiftMultiple choiceIntro
Which of these unwrap an optional safely? Pick all that apply.
#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