Software Engineer Ios Interview Questions

967 software engineer ios interview questions shared by candidates

In the first technical, they asked a question related to closure and capture values which was something like: var string = "car" let closure = { [string] in print("I'm driving \(string)") } string = "truck" closure() Then a question related to lazy keyword whether lazy stuff is thread safe or not. Then a question where there's a kingdom in which there is a king. If the king dies, his child becomes the king otherwise the dead king's sibling becomes the next king. Write a function or computed property to get the currentHeir. (Had to use tree with depth first search to do this.)
avatar

Software Engineer II - IOS

Interviewed at Careem

3.6
May 22, 2022

In the first technical, they asked a question related to closure and capture values which was something like: var string = "car" let closure = { [string] in print("I'm driving \(string)") } string = "truck" closure() Then a question related to lazy keyword whether lazy stuff is thread safe or not. Then a question where there's a kingdom in which there is a king. If the king dies, his child becomes the king otherwise the dead king's sibling becomes the next king. Write a function or computed property to get the currentHeir. (Had to use tree with depth first search to do this.)

Viewing 591 - 600 interview questions

Glassdoor has 967 interview questions and reports from Software engineer ios interviews. Prepare for your interview. Get hired. Love your job.