Ios Interview Questions

7,861 ios interview questions shared by candidates

Logical question: There is a 20-floor tower, and you have 2 plates. At a specific floor, if you throw a plate, it starts to break. If the plate breaks, you can not throw it again, but if it does not break when you throw, you can throw it again. For example, imagine the floor where it starts to break is 7. So, if I throw the plate lower than the 7th floor, it doesn't break. If I throw it on the 7th or above, it breaks. The question: How many attempts do I need (in the worst case), to find out the floor that the plate does not break. Live Coding: There are 2 arrays, both sorted in ascending order. arr1 = [1,3,5,7,9,0,0,0], m = 5 (the number of non-zero elements) arr2 = [2,5,8], n = 3 (the number of elements) The task: You should merge the second array into the first array, and the resulting array should also be sorted in ascending order (you should not create a new result array, but instead modify 1st array). It is guaranteed that the first array has the same number of zeros as the number of elements in the second array. And it does not matter the order if the elements of both arrays are equal, for example, both arrays have element "5", when you compare them, how to sort, it does not matter which stays first. Result: arr1 = [1,2,3,5,5,7,8,9]
avatar

Middle IOS Developer

Interviewed at DSR

4
Dec 27, 2025

Logical question: There is a 20-floor tower, and you have 2 plates. At a specific floor, if you throw a plate, it starts to break. If the plate breaks, you can not throw it again, but if it does not break when you throw, you can throw it again. For example, imagine the floor where it starts to break is 7. So, if I throw the plate lower than the 7th floor, it doesn't break. If I throw it on the 7th or above, it breaks. The question: How many attempts do I need (in the worst case), to find out the floor that the plate does not break. Live Coding: There are 2 arrays, both sorted in ascending order. arr1 = [1,3,5,7,9,0,0,0], m = 5 (the number of non-zero elements) arr2 = [2,5,8], n = 3 (the number of elements) The task: You should merge the second array into the first array, and the resulting array should also be sorted in ascending order (you should not create a new result array, but instead modify 1st array). It is guaranteed that the first array has the same number of zeros as the number of elements in the second array. And it does not matter the order if the elements of both arrays are equal, for example, both arrays have element "5", when you compare them, how to sort, it does not matter which stays first. Result: arr1 = [1,2,3,5,5,7,8,9]

Interview started with an odd situation. Interviewer told me, my name is very funny....Then Ha Ha Ha Ha !!!! What???? He stoped his webcam, But As my webcam is on, I saw myself and answering his question by watching myself. There is no eye contact and watching youself on your computer and answering question is a bit tricky. On the other hand, his toddler son is disturbing him while he was asking questions to me. I requested 3/4 times that I didn't understand you question, because of his son's screaming loudly. Overall, a very bad experiance to me.
avatar

Senior IOS Developer

Interviewed at Andela

3.8
Feb 18, 2023

Interview started with an odd situation. Interviewer told me, my name is very funny....Then Ha Ha Ha Ha !!!! What???? He stoped his webcam, But As my webcam is on, I saw myself and answering his question by watching myself. There is no eye contact and watching youself on your computer and answering question is a bit tricky. On the other hand, his toddler son is disturbing him while he was asking questions to me. I requested 3/4 times that I didn't understand you question, because of his son's screaming loudly. Overall, a very bad experiance to me.

Give these two API’s, plus an enum and struct: enum Alignment { Left, Right, Center } class Size { int width; int height; } // returns the dimensions for a character Size getCharSize(char c); // Draws a character at the specified location, with // (0,0) being the top left. This method does NOT // understand the newline character. Once rendered, // there is no way to delete a character. void drawCharAt(char c, int x, int y); Show how you would implement code for this function: void renderText(String text, int screenWidth, Alignment alignment);
avatar

IOS Engineer

Interviewed at Twitch

3.7
Apr 19, 2017

Give these two API’s, plus an enum and struct: enum Alignment { Left, Right, Center } class Size { int width; int height; } // returns the dimensions for a character Size getCharSize(char c); // Draws a character at the specified location, with // (0,0) being the top left. This method does NOT // understand the newline character. Once rendered, // there is no way to delete a character. void drawCharAt(char c, int x, int y); Show how you would implement code for this function: void renderText(String text, int screenWidth, Alignment alignment);

Viewing 1481 - 1490 interview questions

Glassdoor has 7,861 interview questions and reports from Ios interviews. Prepare for your interview. Get hired. Love your job.