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).
Developer Interview Questions
269,410 developer interview questions shared by candidates
How do you find a largest number in an array? Write out the code in the whiteboard.
Design the Vending machine using Microservices.
Given two integers dividend and divisor, divide two integers without using multiplication, division and mod operator.
Why would you chose let over var, const over let
You are given two sorted lists, return a sorted list of the two lists combined
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
determine if palindrome
Extend the default string class to turn all words in a sentence to uppercase.
Viewing 2911 - 2920 interview questions