Which one of the following is true by default of a Service declared in your manifest? A. It runs in the UI thread. B. It comes with an associated Thread for background execution. C. It’s automatically initialized when you start your app. D. You can only configure it to communicate with the process in which it was started. You want your messaging app to appear as an option in the intent chooser when a user shares content in another application. To do this, you MUST do which of the following? A. Create an IntentService in your Application object to listen to the SENT_MESSAGE intent. B. Register a broadcast receiver in your manifest to receive BROADCAST_SMS. C. Register a ContentObserver to listen to writes to Telephony.Sms.Inbox. D. Register an intent filter for ACTION_SEND in your manifest.
Developer Interview Questions
269,111 developer interview questions shared by candidates
Write algorithm to convert number for example 16 138 832 into "sixteen million one hundred thirty eight thousand eight hundred thirty two"
So how do you implement workflow?
''' We want to implement a feature to suggest to users the cheapest hotel that is more popular than the one they are looking at. Write a function that given an array of hotels, sorted by their popularity returns a map from the hotel ids that associates each hotel with the cheapest hotel that is more popular than the one in question. if there is no hotel that is cheaper and more popular than the one with that id, then it shouldn't be put in the map. You can assume that hotel ids and prices are integers and that hotels have the following format: struct hotel{ int id; int price; } Example 1: input = [ { id => 123, price => 200 }, # Most popular { id => 55, price => 150 }, # Second most popular { id => 17, price => 70 }, # Third most popular { id => 18, price => 500 }, # ... { id => 27, price => 270 }, { id => 101, price => 230 } # Least popular ] output = { 18 : 17, 27 : 17, 101 : 17 }
if we convert string to integer "2.3" =2 "1.4"= 1 what is "3.4"+"2.5"
"You are given an array of integers where every integer occurs an even number of times, except one integer that appears an odd number of times. Return the odd occurring integer. Write functioning code and read it to me when you're done."
2nd largest number in an array
Come up with a formula to calculate the angle between the hour hand and the minute hand in a clock.
Field Accessibility
Write breadth-first search in a matrix
Viewing 721 - 730 interview questions