How could one declare a Swift Array type that can store any type of class object?
Correct Answer: var arr: [AnyObject] = [ ]
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Swift Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Swift MCQ Questions
How could we cast the following array into an NSArray that accesses the NSArray method:
What set of keywords is most commonly used to iterate over a collections of items?
How can we use optional binding to determine if the variable string is not nil?
Choose the answer that declares an optional closure.
Let’s assume "numbers" is an array of unsorted integers. Which of these could be used to sort numbers?
Deallocation never happens due to ___
What is the typical byte width of Float data type in Swift?
Weak references are declared as _____ types
unowned reference types are declared as __
'NSOperationQueue.mainQueue().addOperationWithBlock' will add the operation to