Here's an Objective C category extension. What's wrong with this code? @interface UIImage (RemoteImage) { NSURL * url; UIImage * image; } - (id) initWIthURL: (NSURL *) _url; @end @implementation UIImage (RemoteImage) - (id) initWithURL: (NSURL *)_url { self = [super init]; if( self != nil ) { url = _url; NSURLResponse * response = [NSURLResponse new]; NSURLRequest * request = [[NSURLRequest alloc] initWithURL: url]; NSData * data = [NSURLConnection sendSynchronousRequest: request returningResponse: response error: nil]; image = [UIImage imageWithData: data]; return image; } return self; } - (void) dealloc { [super dealloc]; [url release]; [image release]; } @end
Mobile Software Engineer Interview Questions
392 mobile software engineer interview questions shared by candidates
Given this code: int sum( int a, int b) { int i, s; for( i = a; i < b; i++) s+=a; } We're trying to get the sum of a range of numbers (1-3 = 6, 3-6 = 18, etc). What are the bugs in this code? What's the complexity of this code?
During execution of a method that processes large amounts of data, the application is terminated with a memory warning. What can be done to fix this? (choose one)
For my mobile focused interviews, I don't recall any questions that were intensely difficult.
Data Structures
Savez vous faire une application en React (iOS, Android)?
General: What is deadlock, what is race condition and how do you avoid them?
Android: What platform-tools do you know? What is adb, fastboot, lint, proguard, hierarchyviewer, ddms and how they can be used?
Here's phone question # 1: What is an anagram? A word, phrase, or name formed by rearranging the letters of another, such as cinema, formed from iceman. Assumptions: 1) An anagram of a word is the same length as the word. 2) You can assume for this exercise that any word is composed of unique characters, i.e., only one occurence of any given character. 3) Assume all characters are lower case, if they are letters. Write a method that given a single word and a dictionary text file (csv of words), returns a set of all anagrams of that word from the dictionary. In: Word is 'act', CSV is 'tac, cat, taa, tact' Out: 'tac, cat'
NDA but the phone interviews were easier than average. Code challenge for mobile was a pre-set up project with bugs/other stuff for you to fix, as well as some small features for you to add. Onsite included some pair programming, a brain teaser, algorithm/data structure fundamentals, and ofc some behavioral/background questions.
Viewing 41 - 50 interview questions