50 iOS Interview Questions And Answers Part 5
Updated on Jan, 2024
Check out Part 1, Part 2, Part 3, and Part 4 if you haven’t already :). Let’s get started.
1- Explain Data Structures
Data structures are ways of storing stuff, just like we can put stuff in stacks, queues, heaps, and buckets — I can do the same thing with data. Two of the more common types of data structures are queues and stacks.
Arrays, Sets, Tuples, and Dictionaries are all collections of data structures that store data in one place.
Reference: StackOverflow
2- Explain CodingKey Protocol
The CodingKeys
enum ( Protocol ) lets you rename specific properties in case the serialized format doesn’t match the requirements of the API. CodingKeys should have nested enum.
3- Explain Behavior Driven Development
Behavior Driven Development focus on the behavior of the overall system from an end-user perspective. Instead of testing implementation details, BDD is more concerned with the system’s behavior than individual units.
Quick is a dedicated BDD framework. Nimble is a matcher framework, enabling tests.
4- What is URLSession?