Lead Ios Engineer Interview Questions

1,714 lead ios engineer interview questions shared by candidates

You are given 9 balls and they look exactly the same in color and physical appearance. You are also given a scale. To make things easy you are given that one of the balls amongst these 9 balls is heavy. How can you find out which ball is heavy with least number of weighings?
avatar

Mobile Developer (IOS)

Interviewed at AgileAssets

3.7
Sep 29, 2013

You are given 9 balls and they look exactly the same in color and physical appearance. You are also given a scale. To make things easy you are given that one of the balls amongst these 9 balls is heavy. How can you find out which ball is heavy with least number of weighings?

What will be printed after the following code? class TestClass { var aBlock: (() -> ())? = nil let aConstant = 5 init() { print("init") self.aBlock = { print(self.aConstant) } } deinit { print("deinit") } } var testClass: TestClass? = TestClass() testClass = nil
avatar

IOS Developer

Interviewed at Fiverr Inc.

4.1
Feb 8, 2018

What will be printed after the following code? class TestClass { var aBlock: (() -> ())? = nil let aConstant = 5 init() { print("init") self.aBlock = { print(self.aConstant) } } deinit { print("deinit") } } var testClass: TestClass? = TestClass() testClass = nil

Given an array that contains numbers and/or other nested arrays, write an algorithm to come up with a sum of these elements, multiplied by the depth (or how many arrays deep) you are. For example, what would you do with an input array that looks like: [ 2, 3, [ 9, [ 1, 2 ]], 4]
avatar

IOS Developer

Interviewed at Meta

3.6
Oct 19, 2017

Given an array that contains numbers and/or other nested arrays, write an algorithm to come up with a sum of these elements, multiplied by the depth (or how many arrays deep) you are. For example, what would you do with an input array that looks like: [ 2, 3, [ 9, [ 1, 2 ]], 4]

Viewing 11 - 20 interview questions

Glassdoor has 1,714 interview questions and reports from Lead ios engineer interviews. Prepare for your interview. Get hired. Love your job.