open navigation menu
AiFolder
Tools for a smarter you
Discover
Tools
AI
Games
Interviews
Blog
More
Search AiFolder
Toggle theme
Toggle theme
Sign in
Exit
00:00
Submit test
Swift · Advanced
10 questions · Question 1 of 10
10%
Multiple Choice
Expert
Explain the use case when ARC won't help you to release memory (but GC will)?
A
As an example, if you have a class named node, and node has an NSArray of children, and a single reference to its parent that "just works" with GC.
B
By far the most common reason for using self is inside an initializer, where your likely to want parameter names that match the property names of your type, like this: struct Student { var name: String var bestFriend:...
C
Being the value type structs are immutable.
D
ARC rely on a compile time "referenced" objects which make it efficient in a low power mode environments (Mobile devices).
Previous
Next