Developer Interview Questions

269,410 developer interview questions shared by candidates

isEven(13) // outputs 0 isEven(12) // outputs 1 Create the function isEven with appropriate output. Once the function is created, create event/error handlers for an input of 0 and an input of null, which both output -1. Once finished, recreate the isEven function without using % (modulo) or / (division).
avatar

Software Developer Intern

Interviewed at Qualcomm

3.8
Jan 7, 2020

isEven(13) // outputs 0 isEven(12) // outputs 1 Create the function isEven with appropriate output. Once the function is created, create event/error handlers for an input of 0 and an input of null, which both output -1. Once finished, recreate the isEven function without using % (modulo) or / (division).

If you nest a RelativeLayout inside a LinearLayout, what type of LayoutParams would that RelativeLayout accept? A. RelativeLayout.LayoutParams B. ViewGroup.MarginLayoutParams C. ViewGroup.LayoutParams D. LinearLayout.LayoutParams
avatar

Android Developer

Interviewed at Meta

3.4
May 1, 2015

If you nest a RelativeLayout inside a LinearLayout, what type of LayoutParams would that RelativeLayout accept? A. RelativeLayout.LayoutParams B. ViewGroup.MarginLayoutParams C. ViewGroup.LayoutParams D. LinearLayout.LayoutParams

1. "copy” is not a property of which following class? a. NSArray b. NSInteger c. NSString d. NSNumber 2. You can not call which following method directly? a. sizeThatFits b. sizeToFit c. layoutSubview d. setNeededLayout 3. What type can be used for a delegate? a. strong b. weak c. inout d. copy 4. Which of following can not be appended to an Array. a. Int b. NSObject c. CGColor d. Date 5. In following mechanism, which one can not be used to decouple class? a. delegate b. mutex c. notification d. block
avatar

IOS Developer

Interviewed at Meta

3.4
Nov 18, 2017

1. "copy” is not a property of which following class? a. NSArray b. NSInteger c. NSString d. NSNumber 2. You can not call which following method directly? a. sizeThatFits b. sizeToFit c. layoutSubview d. setNeededLayout 3. What type can be used for a delegate? a. strong b. weak c. inout d. copy 4. Which of following can not be appended to an Array. a. Int b. NSObject c. CGColor d. Date 5. In following mechanism, which one can not be used to decouple class? a. delegate b. mutex c. notification d. block

Viewing 2911 - 2920 interview questions

Glassdoor has 269,410 interview questions and reports from Developer interviews. Prepare for your interview. Get hired. Love your job.