Sr Ios Developer Interview Questions

1,600 sr ios developer interview questions shared by candidates

Swift question: let years = [15, 2, 67, 4, 5] let sum = years.filter({ $0 < 10 }).map({ $0 * 2 }).reduce(5, +) print(sum) Which of the following will be printed out to the console? A. [30, 4, 134, 88, 10] //yes, it's 88. I know you may have expected an 8, but I suspect a typo on their part (as in many other places) B. [5, 4, 8, 10] C. 14 D. 17 E. 19
avatar

Senior IOS Developer

Interviewed at Turing

3.5
Jul 10, 2020

Swift question: let years = [15, 2, 67, 4, 5] let sum = years.filter({ $0 < 10 }).map({ $0 * 2 }).reduce(5, +) print(sum) Which of the following will be printed out to the console? A. [30, 4, 134, 88, 10] //yes, it's 88. I know you may have expected an 8, but I suspect a typo on their part (as in many other places) B. [5, 4, 8, 10] C. 14 D. 17 E. 19

Viewing 21 - 30 interview questions

Glassdoor has 1,600 interview questions and reports from Sr ios developer interviews. Prepare for your interview. Get hired. Love your job.